[Bug]: V8: useAddonState missing from @storybook/preview-api #26426
Answered
by
sballesteros
sballesteros
asked this question in
Help
-
Describe the bugIn v6/v7 i was able to access the state of a custom addon from import { useAddonState } from '@storybook/client-api' Per the readme of @storybook/client-api:
however What is the migration path here? Thanks! To ReproduceNo response SystemNo response Additional contextNo response |
Beta Was this translation helpful? Give feedback.
Answered by
sballesteros
Mar 12, 2024
Replies: 1 comment 4 replies
-
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I can confirm that with v8 we can access the
storybook/viewport
state frompreview.js
with:and