[Bug]: parameters.options
are not respected when navigating to a story for the first time
#27095
Labels
parameters.options
are not respected when navigating to a story for the first time
#27095
Describe the bug
When navigating to a story for the first time, the
parameters.options
defined for the story are not kicking in, with the options from the previous story (or those defined in preview.js) persisting. The options start taking effect on subsequent visits to the story.To Reproduce
https://stackblitz.com/~/github.com/sarkisandreyan/storybook-options-issue?file=src/stories/button.stories.ts
Steps to reproduce:
Button > Primary
, navigate toButton > Secondary
(parameters.options.showToolbar === true
).Button > Primary
, then toButton > Secondary
again.Button > Primary
andButton > Secondary
correctly toggling the toolbar.System
Additional context
This seems to be a regression from Storybook v6.
The text was updated successfully, but these errors were encountered: