Replies: 1 comment
-
Yes! I have this exact same issue, using addon-themes and it breaks the ability to use useState in template functions. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using storybook in a monorepo. In my root folder in
preview.js
I have this:When I use decorators along with
useState
in my components, I get,Storybook preview hooks can only be called inside decorators and story functions.
The story:
When I comment out the decorator, everything works fine. What am I doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions