You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are seeing an odd behavior where components seem to be reloading/remounting multiple times when this addon is enabled.
In our case, we can see this happening by adding this to a component that has stories:
React.useEffect(()=>console.log('mounted'),[])
When parameters.locale and parameters.locales keys are set in preview.js, we see the console.log firing 4 times. When those are commented out, we see it fire just a single time.
This causes issues with the play functions, since the component reloads in the middle of the scripted behavior, so later interactions might be attempting to execute on elements that are no longer present.
This is with 1.0.17 of this addon, 6.4.19 of the various Storybook deps.
The text was updated successfully, but these errors were encountered:
We are seeing an odd behavior where components seem to be reloading/remounting multiple times when this addon is enabled.
In our case, we can see this happening by adding this to a component that has stories:
When
parameters.locale
andparameters.locales
keys are set inpreview.js
, we see theconsole.log
firing 4 times. When those are commented out, we see it fire just a single time.This causes issues with the play functions, since the component reloads in the middle of the scripted behavior, so later interactions might be attempting to execute on elements that are no longer present.
This is with
1.0.17
of this addon,6.4.19
of the various Storybook deps.The text was updated successfully, but these errors were encountered: