Supabase Multiple Browser Tabs Issue #35069
Replies: 9 comments 1 reply
|
Any update on this like I am also having the same issue? |
|
I also have similar issue. mine could be little different cause but have same problem. doesn't even network call not being made and entire CRUD actions froze. and double checked with console.logs and confirmed that it stops at right where creating a client. |
|
Hello @rungchan2, Yes, the issue you're experiencing is related to your code, not Supabase. It seems that the problem arises because you're using Please try this solution. If the issue persists, feel free to provide more details, and this may help others offer a better solution. |
|
Hi everyone, I'm going to move this one over to a discussion for troubleshooting. Thank you @Heet-Bhalodiya for you help on this one! |
|
We're seeing some similar behavior with https://github.com/replayio/nut.new . If we open up multiple tabs, it will sometimes hang on the It happens intermittently, so I can't consistently repro it, but it happens often enough I was able to debug it some. I traced it down through the Supabase Auth locking logic. In general it seems like it's deadlocking on the |
|
The same happens to me when opening a new tab in a browser when the user is already logged in another tab. Some times it doesn't get the session. Refreshing the tab sometimes works. This doesn't happen always. Difficult to reproduce. |
|
I'm encountering an issue where having multiple tabs causes the |
|
Having a similar issue -- not able to fix easily (I checked the linked thread above) |
|
I can confirm this bug on multiple supabase projects. Could be a supabase setting that is not logging errors properly like connections or perhaps shared database deadlock exception handling. @neelbrahmakshatriya how is your supabase hosted? |
Uh oh!
There was an error while loading. Please reload this page.
Bug report
Describe the bug
When multiple tabs of the application are open simultaneously, Supabase client operations (updates, mutations) stop working. Network calls are not being made when trying to perform operations. However, the functionality works correctly when only a single tab is open.
To Reproduce
Expected behavior
Supabase operations should work consistently regardless of the number of tabs open.
Current Behavior
The current client implementation:
Repository Structure
The application is using a monorepo structure with the following packages:
packages/supabase- Contains Supabase client configuration and helpersapps/web- Main Next.js applicationPotential Technical Causes
The issue might be related to several technical aspects:
WebSocket Connection Management:
Session Management:
Client Instance Management:
Browser Storage Conflicts:
System information
All reactions