-
Is there a way to access globals defined for the toolbar inside a Story? I saw there is a hook useGlobals but it seems only working for addons. TypeError: Cannot read property 'updateGlobals' of undefined |
Beta Was this translation helpful? Give feedback.
Answered by
shilman
Feb 26, 2021
Replies: 1 comment 1 reply
-
If you just want access to the current values, the second argument to a function is a StoryContext which contains a export const MyStory = (args, { globals }) => { .... } |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
seppzero
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you just want access to the current values, the second argument to a function is a StoryContext which contains a
globals
field