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
Adding just this addon in Storybook 5.2.1 causes some issues.
If I view a component with few props to show, it works fine enough. But, if the components props type signature is something like:
type Props = {
customValue: any
} & HTMLAttributes<HTMLDivElement>
Then it takes ages to render the table, and causes GPU usage to skyrocket, and causes visual artifacts all over the screen as if the system is dying.
I guess it struggles with showing too many props? Is this a known issue?
It's odd that it makes your browser run slow. I am open to prs to improve perf.
In general though I don't think it the best experience to show all the html attributes in the prop panel. Users will get that in their IDE, in storybook it find it nicer to just show the react props you define.
Adding just this addon in Storybook 5.2.1 causes some issues.
If I view a component with few props to show, it works fine enough. But, if the components props type signature is something like:
Then it takes ages to render the table, and causes GPU usage to skyrocket, and causes visual artifacts all over the screen as if the system is dying.
I guess it struggles with showing too many props? Is this a known issue?
I'll list the contents of the relevant files.
addons.ts
presets.js
config.tsx
webpack.config.js
The text was updated successfully, but these errors were encountered: