-
Notifications
You must be signed in to change notification settings - Fork 755
Closed
Description
It appears that react-static
has buggy or non-existent recovery after failure when preloading resources.
To Reproduce
Steps to reproduce the behavior:
- Open a
react-static
site. For example, react-static.js.org. Let the page load. - Turn off your connection (turn off wifi or click "offline" in devtools > network)
- Click "Documentation" or "Get Started!"
- The content has preloaded and should show up despite your network being offline. However, it tries to preload additional content, which fails (you can see errors in the console).
- Turn on your connection again.
- Click e.g. "Changelog" in the sidebar navigation.
- You get a 404 page even though you have a working connection and should be able to fetch the content.
Expected behavior
I expected react-static
to try to fetch the content again if it failed. With the current behavior, the only way for users to recover is to do a "full" refresh of the page.
I believe it might possible to work around by importing axios
and using interceptors, but it really seems like that should not be needed?
Metadata
Metadata
Assignees
Labels
No labels