chromaui / addon-visual-tests

Visual Tests addon for Storybook
MIT License
28 stars 1 forks source link

Save local state in `sessionStorage` or shared state #274

Closed ghengeveld closed 3 months ago

ghengeveld commented 3 months ago

When switching to a docs page, addons don't render and thus the VTA addon is destroyed, losing all internal React state. By synchronizing local state with sessionStorage, this problem is circumvented.

📦 Published PR as canary version: 1.3.0--canary.274.0843e22.0
:sparkles: Test out this PR locally via: ```bash npm install @chromatic-com/storybook@1.3.0--canary.274.0843e22.0 # or yarn add @chromatic-com/storybook@1.3.0--canary.274.0843e22.0 ```