Using Pinia Store with Storybook in Vue 3: Prop Not Updating in Storybook Preview #29684
Unanswered
ivanbacher
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
I am using Vue3 + webpack and Pinia.
First I was unable to get the data store working with Storybook, but came across this issue that had a fix: #24347
Now I am able to use the pinia store with Story Book. In short, the solution was to just access the store in the setup step:
This all works, the correct prop is passed to the component. However, in the story book view, the prop is not picked up. It's empty. E.g.
Any way to fix this?
Additional information
No response
Create a reproduction
No response
Beta Was this translation helpful? Give feedback.
All reactions