-
-
Notifications
You must be signed in to change notification settings - Fork 9.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Common name prefix causes rapid switching between stories on load #11571
Comments
Ping? Just want to make sure this doesn't fall thru the cracks before the release! |
Hi @shilman, I tried with the latest and it's still happening. |
Do you have a public repro you can share? |
I'll take a look, thanks @pelotom |
Crikey!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.0.0-rc.14 containing PR #11637 that references this issue. Upgrade today to try it out! You can find this prerelease on the Closing this issue. Please re-open if you think there's still more to do. |
Thanks guys! |
Whoopee!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.0.0-rc.15 containing PR #11660 that references this issue. Upgrade today to try it out! You can find this prerelease on the |
This appears to have been introduced in 6.0.0-beta.33.
Using these stories:
if you start on the "x" story and then reload the page, it will switch to the "x y" story, and the console prints
(In my real project using typescript it actually switches between the 2 stories many more times, sometimes endlessly.)
This seems somehow related to the fact that the second story's name is a prefix of the first. If you change the second story name to "x z" the bug doesn't occur. It also doesn't occur if you change the order of the stories or change which one is selected at the beginning.
The text was updated successfully, but these errors were encountered: