Previously we would poll the Chromatic API every 5 seconds to check for service availability (and internet connection). This floods our GraphQL API with needless requests, so we decided to remove that polling behavior.
To cover the most likely scenario of no internet connection, the browser online and offline events are used to get notified of connection issues.
📦 Published PR as canary version: 1.6.0--canary.326.58371ad.0
:sparkles: Test out this PR locally via:
```bash
npm install @chromatic-com/storybook@1.6.0--canary.326.58371ad.0
# or
yarn add @chromatic-com/storybook@1.6.0--canary.326.58371ad.0
```
Previously we would poll the Chromatic API every 5 seconds to check for service availability (and internet connection). This floods our GraphQL API with needless requests, so we decided to remove that polling behavior.
To cover the most likely scenario of no internet connection, the browser
online
andoffline
events are used to get notified of connection issues.📦 Published PR as canary version:
1.6.0--canary.326.58371ad.0
:sparkles: Test out this PR locally via: ```bash npm install @chromatic-com/storybook@1.6.0--canary.326.58371ad.0 # or yarn add @chromatic-com/storybook@1.6.0--canary.326.58371ad.0 ```