Closed victorlmneves closed 2 years ago
Does it works anyway? This a warning that has a fallback when the browser can't do a structured clone of your state.
@Akryum it works while you are on the story. If you go to a different story and then return to the story it no longer switches between the existing states
Looks like the issue is in reality "the initial state is not the initial one but the one from last state when coming back to the story". Switching between presets still works.
I've implemented a series of improvements that should fix this:
thanks @Akryum
Describe the bug
Creating a new state on Controls throws an error when switching between existing states. It switches once, and then it no longer is possible to switch back to another option.
Reproduction
Just open one of the existing stories, create a new state on the Controls, and switch between them.
https://stackblitz.com/edit/histoire-vue3-starter-uapwc2
System Info
Used Package Manager
npm
Validations