Why is my supabase API call not returning?
目前在 supabase-js 中有一个 bug,如果在 onAuthStateChange 代码中进行任何异步 API 调用,会导致死锁。如果在处理函数里调用了 API,那么使用该客户端的下一个 Supabase 调用会挂起,无法返回。
🌐 There is currently a bug in supabase-js which results in a deadlock if any async API call is made in onAuthStateChange code. If a call is made in the handler then the next Supabase call anywhere using that client will hang and not return.
目前需要一个临时解决办法,直到这个问题被修复。
🌐 For now a workaround is needed until this is fixed.
https://github.com/supabase/gotrue-js/issues/762#issuecomment-1780006492