Open
Description
Let's say I'm using React + Apollo + apollo-cache-persist with a GraphQL backend. Here's the problem:
- Let's say the backend released a broken update, returning data that causes the app to crash
- The client caches this data
- The client uses the data to render UI
- The client crashes
- On the next launch, the client tries to use the stale data to render UI
- The client crashes
- Go back to number 5
In this scenario, the users are stuck with a failing web app/crashing mobile app, and the only solution (once a fix to the backend is pushed) for them is to clear their site data/reinstall the app.
What's the recommended way to solve this?
One idea I had so far is to catch render issues with an error boundary and clear the persisted cache in this case.
Metadata
Metadata
Assignees
Labels
No labels
Activity