Help with composition + channel events #27134
Unanswered
chimericdream
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
I am working on a set of Storybook instances for a monorepo, where several packages have their own independently deployable Storybook setup, and there is also a central "umbrella" Storybook that uses composition/refs to display everything at once.
I was troubleshooting some issues with themed components when I realized that events broadcast from the outer instance of Storybook are not propagated to the composed ones.
How do I set up events/handlers/refs/whatever such that a "child" Storybook instance will receive an event like
DARK_MODE_EVENT_NAME
from thestorybook_dark_mode
addon when the user updates the mode in the main "shell" Storybook?Additional information
No response
Create a reproduction
No response
Beta Was this translation helpful? Give feedback.
All reactions