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
It's often frustrating when looking at the design tab, then switching to another tab (i.e. the controls tab to change some prop) and then returning to the design tab, only to find that the design being loaded all over again. Loading figma or figspec designs can take a considerable amount of time (~5 secs in average).
Solution
Once loaded, the design tab content should be retained in memory, at least until the user navigates to another story in the left sidebar.
Design types
figma
figspec
link
image
iframe
The text was updated successfully, but these errors were encountered:
The current design (returns null when inactive) is based on a11y addon and actions addon. I checked the current recommended way and it seems using AddonPanel (imported from @storybook/components) is the best way to render panel content in v6.x.
Tested on local repository and it worked but had reset problem on multiple designs (inner tabs). I would open a PR once I solved the problem or gave it up.
Almost all of embed-type this addon supports take a few seconds to load.
The problem is, when a user moves to another addon tab then returns to
a "Design" tab, the tab contents restarts the whole rendering process
including network access. In order to eliminate this unnecessary
loading, I changed the panel rendering so it remains on DOM once after a
user enters the "Design" tab on the story.
#153
Opportunity
It's often frustrating when looking at the design tab, then switching to another tab (i.e. the controls tab to change some prop) and then returning to the design tab, only to find that the design being loaded all over again. Loading figma or figspec designs can take a considerable amount of time (~5 secs in average).
Solution
Once loaded, the design tab content should be retained in memory, at least until the user navigates to another story in the left sidebar.
Design types
figma
figspec
link
image
iframe
The text was updated successfully, but these errors were encountered: