Skip to content

Commit

Permalink
Merge pull request #25628 from storybookjs/shilman/fix-nextjs-readme-rsc
Browse files Browse the repository at this point in the history
NextJS: Fix RSC refactor docs
  • Loading branch information
shilman authored Jan 17, 2024
2 parents 7d7650f + c3c8ccf commit 50959d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/frameworks/nextjs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -920,13 +920,13 @@ export default {
Setting this flag automatically wraps your story in a [Suspense](https://react.dev/reference/react/Suspense) wrapper, which is able to render asynchronous components in NextJS's version of React.
If this wrapper causes problems in any of your existing stories, you can selectively disable it using the `nextjs.rsc` [parameter](https://storybook.js.org/docs/writing-stories/parameters) at the global/component/story level:
If this wrapper causes problems in any of your existing stories, you can selectively disable it using the `react.rsc` [parameter](https://storybook.js.org/docs/writing-stories/parameters) at the global/component/story level:
```js
// MyServerComponent.stories.js
export default {
component: MyServerComponent,
parameters: { nextjs: { rsc: false } },
parameters: { react: { rsc: false } },
};
```
Expand Down

0 comments on commit 50959d1

Please sign in to comment.