storybook-design-token icon indicating copy to clipboard operation
storybook-design-token copied to clipboard

Painfully slow within the Addon Panel

Open prodkt opened this issue 2 years ago • 1 comments

It's a night and day difference enabled and disabled. So slow there's no way we'd be able to use this with it on.

But I may be at fault here for missing some documentation around this. It's showing every single one of our tokens in every single story (in the addon panel). I'm not sure I can think of a use case we'd ever want or need all of our tokens within every Story. We'd have them categorized in a DocsPage. We were under the impression it would only show the tokens that story used. That seems only logical.

Is that right that every token should show up in every panel for all component at all times without it disabled? If so, it's not giving away any value there. It's causing a hindrance and is a pain point with the performance issues it inflicts within minutes of setting it up.

prodkt avatar Jun 19 '22 21:06 prodkt

The behaviour is correct. The addon panel should work as a reference of all your tokens. The performance issue should have been fixed in a previous version using virtualized scrolling. Maybe there is a regression.

How many tokens and categories do you have?

Sqrrl avatar Jun 24 '22 10:06 Sqrrl