[React Query + Supabase] Persistent UI Freeze After Inactivity (Web/Mobile) – Stuck Data Requests.
Hello! We're facing a critical stability issue in our application (React/Vite/Supabase) where the UI freezes and the "Loading..." spinner gets stuck indefinitely.
The Symptom: After just a few minutes of inactivity (no navigation/interaction), any page making a Supabase query (via React Query) freezes the main JavaScript/UI thread. The request gets stuck in a pending state (Zombie Connection/NetStack Freeze) and fails to complete or return an error
2 Replies
There is a hang case if you are using onAuthStateChange handler incorrectly. If you are using it, see the important note here: https://supabase.com/docs/reference/javascript/auth-onauthstatechange
Otherwise not enough info for anyone to likely help you.
JavaScript: Listen to auth events | Supabase Docs
Supabase API reference for JavaScript: Listen to auth events
Thank you, I'll try that.