Skip to content
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

Infinite Loops in Storybook #1227

Open
spectrachrome opened this issue Aug 22, 2024 · 0 comments
Open

Infinite Loops in Storybook #1227

spectrachrome opened this issue Aug 22, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@spectrachrome
Copy link
Member

spectrachrome commented Aug 22, 2024

I have recently been doing intense profiling of the slider ticks generation and found it to be impossible to do properly inside Storybook because of an infinite loop that stems most likely from an issue with Storybook itself.

As a test case, one can take a large dataset of date strings (~20,000 entries), loaded as JSON into a Storybook arg populating the slider steps of the Time Control. With this many entries, the Storybook page will freeze and crash entire tabs.

Now press the button which opens the iframe with only the element itself, and you will see: the initialization of the slider takes just 90ms instead of 10 seconds.

I would like to start a discussion on the topic since I am not sure what to make of the version fixes mentioned in the issue thread.

@spectrachrome spectrachrome self-assigned this Aug 22, 2024
@spectrachrome spectrachrome added the bug Something isn't working label Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant