cheatcode / joystick

A full-stack JavaScript framework for building stable, easy-to-maintain apps and websites.
https://cheatcode.co/joystick
Other
209 stars 11 forks source link

When refetching data as part of HMR, check server availability #362

Closed rglover closed 2 months ago

rglover commented 11 months ago

If it's unavailable, set a timeout/delay of a few seconds and retry. This should avoid a browser break/reload.

rglover commented 2 months ago

This is more or less mitigated with the changes in the RC1 release. I let the browser control the timing of the server restart now by pinging the dev server after an HMR update completes in the browser.