Skip to content

Why don't add-ons work in composite storybooks? #24876

Answered by domyen
BrknRules asked this question in General
Discussion options

You must be logged in to vote

Good question, I worked on this feature.

There was a tradeoff between avoiding dependency conflicts and maintaining addon functionality. Composition is meant to work with Storybooks that have different sets of renderers and the associated dependencies (e.g., react, vue, etc).

In order to do this, we render an iframe into that composed Storybook from the local Storybook. This ensures different Storybook's can be composed with each other and sidesteps dep conflicts that would prevent Storybook from building.

But because the args and the component implementation can vary drastically between renderers like React, Vue, or Web Components, it didn't make sense to apply the local Storybook's addo…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Nabil-MEDIOUNI
Comment options

Answer selected by BrknRules
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants