Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React: Refactor RSC out of Next #25591

Merged
merged 5 commits into from
Jan 17, 2024
Merged

React: Refactor RSC out of Next #25591

merged 5 commits into from
Jan 17, 2024

Conversation

shilman
Copy link
Member

@shilman shilman commented Jan 13, 2024

Closes N/A

What I did

The RSC approach introduced in 7.6 can apply to any React project that uses an appropriate 18.3 canary.

So this breaking change changes the feature flag & configuration parameter so that it's no longer NextJS specific.

  • Feature flag: experimentalNextRSC => experimentalRSC
  • Configuration parameter: nextjs.rsc => react.rsc

There is an appropriate note in MIGRATION.md. And since we don't actually support any other usage yet, we have not documented its use with any other framework yet.

Checklist for Contributors

Testing

The changes in this PR are covered in the following automated tests:

  • stories
  • unit tests
  • integration tests
  • end-to-end tests

Manual testing

This section is mandatory for all contributions. If you believe no manual test is necessary, please state so explicitly. Thanks!

Documentation

  • Add or update documentation reflecting your changes
  • If you are deprecating/removing a feature, make sure to update
    MIGRATION.MD

🦋 Canary release

This pull request has been released as version 0.0.0-pr-25591-sha-337ab526. Install it by pinning all your Storybook dependencies to that version.

More information
Published version 0.0.0-pr-25591-sha-337ab526
Triggered by @shilman
Repository storybookjs/storybook
Branch shilman/refactor-client-rsc
Commit 337ab526
Datetime Sat Jan 13 15:06:12 UTC 2024 (1705158372)
Workflow run 7513198979

To request a new release of this pull request, mention the @storybookjs/core team.

core team members can create a new canary release here or locally with gh workflow run --repo storybookjs/storybook canary-release-pr.yml --field pr=25591

@shilman shilman added maintenance User-facing maintenance tasks react nextjs ci:normal labels Jan 13, 2024
@storybookjs storybookjs deleted a comment from storybook-bot Jan 14, 2024
@shilman shilman added BREAKING CHANGE and removed maintenance User-facing maintenance tasks labels Jan 16, 2024
Copy link
Contributor

github-actions bot commented Jan 16, 2024

Fails
🚫 PR is marked with "BREAKING CHANGE" label.

Generated by 🚫 dangerJS against 4f183a9

@shilman shilman marked this pull request as ready for review January 17, 2024 12:10
MIGRATION.md Outdated Show resolved Hide resolved
MIGRATION.md Outdated Show resolved Hide resolved
MIGRATION.md Outdated Show resolved Hide resolved
MIGRATION.md Outdated Show resolved Hide resolved
code/renderers/react/src/entry-preview-rsc.tsx Outdated Show resolved Hide resolved
code/renderers/react/src/entry-preview-rsc.tsx Outdated Show resolved Hide resolved
MIGRATION.md Outdated Show resolved Hide resolved
@shilman shilman merged commit 7d7650f into next Jan 17, 2024
14 checks passed
@shilman shilman deleted the shilman/refactor-client-rsc branch January 17, 2024 14:27
@github-actions github-actions bot mentioned this pull request Jan 17, 2024
21 tasks
kylegach added a commit that referenced this pull request Jan 17, 2024
- Per #25591
- `features.experimentalNextRSC` -> `features.experimentalRSC`
- `parameters.nextjs.rsc` -> `parameters.react.rsc`
@@ -170,7 +167,7 @@ export const webpackFinal: StorybookConfig['webpackFinal'] = async (baseConfig,
configureFastRefresh(baseConfig);
}

if (options.features?.experimentalNextRSC) {
if (options.features?.experimentalRSC) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this still be in this file?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It controls a webpack configuration. Where would you imagine it living?

kylegach added a commit that referenced this pull request Jan 18, 2024
- Per #25591
- `features.experimentalNextRSC` -> `features.experimentalRSC`
- `parameters.nextjs.rsc` -> `parameters.react.rsc`
kylegach added a commit that referenced this pull request Jan 24, 2024
- Per #25591
- `features.experimentalNextRSC` -> `features.experimentalRSC`
- `parameters.nextjs.rsc` -> `parameters.react.rsc`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants