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
My project uses the depth parameter of the configureActions function to improve performance of the Actions addon by reducing the amount of event data that is serialized. After we upgraded to Storybook 7 we noticed that performance slowdowns were back because our previous configuration of depth: 6 was resulting in much more data being serialized in v7 than in v6.5 Now we need to set depth: 1 to achieve the same result (and it appears to be serializing at least 6 levels deep).
We've been setting this parameter based on trial and error so it's not a huge deal for its meaning to change but ideally it would be documented in the migration guide if it was intended. If nothing else, hopefully this issue helps someone else who is debugging a similar performance regression.
To Reproduce
Note the field in these images called action-menu-toggle.target._tableData.
Describe the bug
My project uses the
depth
parameter of theconfigureActions
function to improve performance of the Actions addon by reducing the amount of event data that is serialized. After we upgraded to Storybook 7 we noticed that performance slowdowns were back because our previous configuration ofdepth: 6
was resulting in much more data being serialized in v7 than in v6.5 Now we need to setdepth: 1
to achieve the same result (and it appears to be serializing at least 6 levels deep).We've been setting this parameter based on trial and error so it's not a huge deal for its meaning to change but ideally it would be documented in the migration guide if it was intended. If nothing else, hopefully this issue helps someone else who is debugging a similar performance regression.
To Reproduce
Note the field in these images called
action-menu-toggle.target._tableData
.Storybook 6.5 with
depth: 6
:Storybook 7.0 with
depth: 6
:
Storybook 7.0 with
depth: 1
:This will be reproducible in the Storybook for
ni/nimble
based on thispreview.js
configuration shortly. If you need more targeted steps to reproduce please say so!System
Additional context
No response
The text was updated successfully, but these errors were encountered: