Open Thebarda opened 2 months ago
Disclaimer This information might be inaccurate, due to it being generated automatically
The infinite loop on unboundStoryFn
might be related to the StoryStore
implementation. Specifically, check the fromId
method in /code/core/src/preview-api/modules/store/StoryStore.ts
. Ensure that the storyFn
function does not cause re-renders by verifying the context and update logic. Review the getStoryContext
method to ensure it does not introduce state changes that could trigger re-renders. Additionally, ensure that any hooks or state management within the story are not causing unintended side effects.
/.github/DISCUSSION_TEMPLATE/help.yml /code/lib/cli/src/automigrate/fixes/new-frameworks.ts /code/lib/cli/src/automigrate/fixes/prompt-remove-react.ts /code/core/src/preview-api/modules/store/StoryStore.ts /.github/comments/invalid-link.md /code/core/src/server-errors.ts /code/lib/cli/src/automigrate/index.test.ts /code/lib/cli/src/automigrate/fixes/mdx-gfm.ts /code/core/src/core-server/utils/mockdata/errors/NoMeta.stories.ts /code/lib/cli/src/automigrate/fixes/sb-scripts.test.ts /code/lib/cli/src/automigrate/fixes/missing-storybook-dependencies.ts /code/lib/instrumenter /.github/comments /code/lib/cli/src/automigrate/fixes/angular-builders-multiproject.ts /code/lib/cli/src/automigrate/fixes/addon-postcss.ts /code/lib/cli/src/automigrate/fixes/mdx-to-csf.ts /code/lib/cli/src/autoblock/block-storystorev6.ts /code/lib/cli/src/automigrate/fixes/vta.ts /CONTRIBUTING.md /code/core/src/preview-errors.ts /code/lib/cli/src/automigrate/helpers/getMigrationSummary.test.ts /.github/DISCUSSION_TEMPLATE/ideas.yml /docs/contribute/how-to-reproduce.mdx /code/addons/interactions/template/stories /code/lib/cli/src/automigrate/fixes/angular-builders.ts
After a bit of investigations, I found out the addon @storybook/addon-interactions causes the issue. I removed it because I don't use it and no extra renders ๐
I have this issue too. Thank you @Thebarda for your input, possibly removing that dependency will help.
Describe the bug
Hello, I've recently migrated storybook from v7 to v8 using the migration script. Since, there is an infinite loop on
unboundStoryFn
that causes re-rendering all my stories You can find my config right hereIs there something related to my configuration?
Thanks
EDIT: When I open the canvas in a new tab, it does not render infinitely.
Reproduction link
https://github.com/centreon/centreon/blob/develop/centreon/packages/ui/.storybook/main.ts T
Reproduction steps
System
Additional context
No response