-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Preact: Updating args causes a full refresh #19504
Comments
@tmeasday I thought that was intentional; I've seen this behaviour last time I was diving in the story rendering code, but wanted to preserve existing behaviour since I didn't really know whether it was intentional or not. |
Hey @KrofDrakula. I'm not quite sure what was intended by who/when but the "correct" behaviour in Storybook is that the story/component should remount when you change story (or a couple other events) but should re-renderer without remounting when you change args or globals. |
@tmeasday Yeah, that makes much more sense to me; it always bothered me that it completely unmounted the components when changing any parameter. |
I'm getting this issue with
I see the code you changed now lives here:
But it does not include vue3 or svelte anymore, so maybe there were some changes in the meantime that broke this functionality. I would like to help more, but I'm unfamiliar with the codebase. |
That code was disabling the test in vue3/svelte, so the removal of them from the list means they were fixed. You can see the vue fix in this PR: |
Describe the bug
Preact version of #13913
Seems like it was originally fixed in #12221 but regressed (perhaps in preact 10?)
The text was updated successfully, but these errors were encountered: