You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a monorepo where storybook is one of the packages (ie packages/storybook) rending stories from another package (ie packages/components), any imported react providers put into a decorator in preview don't actually provide the value, but if I use the provider at the story level (which is colocated with the component in packages/components), it works.
Dragging the green block between the sun and the flower should make a sound, but it doesn't (global provider is loading sounds).
Go to Solvers/BreadthFirstSearch/Area1Level2
Immediately you'll hear a sound, and if you drag a block away and back, you'll hear the sound (uses a story level provider).
System
Chromatic
Additional context
I THINK it's because storybook is using built code when I import the providers into preview, but is using the story's components directly when it find a story in that package, making them TECHNICALLY different react contexts.
The text was updated successfully, but these errors were encountered:
Describe the bug
In a monorepo where storybook is one of the packages (ie packages/storybook) rending stories from another package (ie packages/components), any imported react providers put into a decorator in preview don't actually provide the value, but if I use the provider at the story level (which is colocated with the component in packages/components), it works.
Reproduction link
http://localhost:6006/?path=/story/components-level--area-1-level-1&globals=backgrounds.value:transparent;backgrounds.grid:!true
Reproduction steps
System
Additional context
I THINK it's because storybook is using built code when I import the providers into preview, but is using the story's components directly when it find a story in that package, making them TECHNICALLY different react contexts.
The text was updated successfully, but these errors were encountered: