#Pass Data to Vue setup() => data()

2 messages · Page 1 of 1 (latest)

true shore
#

Hi I hope everybody is doing well. I'm quite new with storybook and can't get my head around how to pass data to vues data() object or any other refs when used with composition api.

As you can see in the attached screenshot data is undefined. When I manually add data to the story via VueDevTools the data is shown in the story in the browser. I just am not able to provide the data via the .stories.ts file directly.

I would be really happy if somebody could help me with that. I belive it's not complicated, but as I said, I just don't get it. ^^

sudden creek
#

@prisma needle Any chance you know the answer here?