© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
20 replies
stevharve

Supabase Realtime race condition

I have a chat portion of my app and it subscribes to the INSERT on the messages table. It fires correctly but if I re-fetch messages instantly when the INSERT fires the new message isn't even in the table yet. And I know the re-fetch is good because if I delay it by 1000ms the table contains the new message.
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Race condition in insert
SupabaseSSupabase / help-and-questions
6mo ago
Caching via Race Condition?
SupabaseSSupabase / help-and-questions
3y ago
Race condition with RLS
SupabaseSSupabase / help-and-questions
4y ago
Possible race condition when sharing Supabase client across users
SupabaseSSupabase / help-and-questions
5mo ago