generated from storybookjs/addon-kit
-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Updating reactive state or contexts doesn't work from the beforeEach function.
This would be useful for changing context mocks between stories in the same file.
Steps to reproduce the behavior
- Create a story
- attempt to update a
$staterune insidebeforeEach-> reactivtity won't work, attempting to usegetContext/setContextwill also throw an error
Expected behavior
That the beforeEach function is run inside the context of the Story component, I've noticed there's some code to do this for the Doesn't seem possible from play function, can it be done for beforeEach too?play either
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working