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

[Bug] Storybook experimental features ignored in portable stories #29782

Open
Tracked by #29770 ...
vanessayuenn opened this issue Dec 2, 2024 · 0 comments
Open
Tracked by #29770 ...

Comments

@vanessayuenn
Copy link
Contributor

In Storybook we normally use the featuresmain.js property to allow users to toggle between certain experimental features like experimentalRSC, however those are not taken into account in portable stories:

// .storybook/main.js
export default {
  features: {
    experimentalRSC: true,
  },
}

💡 Solutions/Action items:

  • We can add support for these by parsing that property in main.js and injecting into a FEATURES object in globalThis during a test run (in a virtual set up file or the like)
  • We can discourage ourselves to use the features property whenever possible, and use parameters instead. The experimentalRSC flag was actually moved into parameters.react.rsc and that is automatically handled in portable stories
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants