You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fetch() can throw (e.g., network down), and you handle it — good.
But it can also return a response with ok = false (like 404), which you currently treat as success.
You might want to retry on specific status codes (e.g. 408, 429, 500–599).