Supabase JS client v2.105.1 with Next.js. App hangs when switching away from the browser tab and returning. All Supabase fetches get stuck. Only happens after the tab has been in the background. Running locally and on Vercel. Auth is PKCE flow.
The user reports that their app, using Supabase JS v2.105.1 with Next.js, hangs when the browser tab becomes inactive and then active again. This issue occurs both locally and on Vercel, affecting all Supabase fetch requests. The authentication flow used is PKCE.
If the hang is a supabase call and console.log works before and not after it, It is almost always you have an auth event handler and don't meet the important note here: https://supabase.com/docs/reference/javascript/auth-onauthstatechange