chromaui / addon-visual-tests

Visual Tests addon for Storybook
MIT License
33 stars 2 forks source link

Show a loading state in between URQL states #104

Closed tmeasday closed 11 months ago

tmeasday commented 12 months ago

To reproduce the problem, turn on network shaping to slow down your internet and switch stories. Rather than seeing the old story you should see a spinner while you wait:

image

Unfortunately there's no good way to simulate this behaviour in SB that I could come up with.

📦 Published PR as canary version: 0.0.91--canary.104.2a6ea41.0
:sparkles: Test out this PR locally via: ```bash npm install @chromaui/addon-visual-tests@0.0.91--canary.104.2a6ea41.0 # or yarn add @chromaui/addon-visual-tests@0.0.91--canary.104.2a6ea41.0 ```
linear[bot] commented 12 months ago
AP-3675 Loading state when switching story

We should show some kind of loading UI while the GQL query fetches the next story.