[Bug]: Cant make a new story instance out of an existing one if the story contains an object prop #29787
Unanswered
FAUSTMANNSTEF
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 have been messing around storybook and found out about this new cool feature of being able to add new stories when messing around with your current one : https://storybook.js.org/blog/interactive-story-generation/
I tried to do this to with this story
However when i changed the color for example in the Storybook UI and pressed the button to create a new story based on this change , i get this error
I found out that the mistake lies on the children prop since its structure is the one mentioned in the error:
Is there a way to make this work with an object ? Can i use any sort of json conversion and pass it on from the component itself ? Any input on this is highly appreciated couldnt find anything on the web
Thank you for your help guys !
Additional information
This is the file of the component
and these are the stories
Create a reproduction
No response
Beta Was this translation helpful? Give feedback.
All reactions