Supabase freezes after inactivity of tab.
I have a Supabase-powered app named Taskflow, built in React with the following stack:
Frontend: React 18, TypeScript, Vite
UI Components: Radix UI, Tailwind CSS, shadcn/ui
Backend: Supabase (Database, Auth, Real-time)
State Management: React Context API
Routing: React Router DOM
However, an issue is arising: everything works fine when I'm on the Taskflow tab, but when I switch away from the tab for 2 or more seconds, I can no longer create new tasks. I have to refresh the page to make task creation work again.
Why is this happening?
Frontend: React 18, TypeScript, Vite
UI Components: Radix UI, Tailwind CSS, shadcn/ui
Backend: Supabase (Database, Auth, Real-time)
State Management: React Context API
Routing: React Router DOM
However, an issue is arising: everything works fine when I'm on the Taskflow tab, but when I switch away from the tab for 2 or more seconds, I can no longer create new tasks. I have to refresh the page to make task creation work again.
Why is this happening?