Real-time data updates with Next.js and Supabase
@asidorenko_35K followers
53,611 views
9 Comments
Comments from the original post on X (Twitter)

@asidorenko_
P.S. Since real-time updates trigger router.refresh, we can remove revalidatePath from the server action. Otherwise, the person who triggers the update will fetch the same data twice.
26 likes

@kajtszy
This is exactly how I did. Multiple tables, RLS, granularity with filters. There is so much space to scale things up! Top-notch @supabase
3 likes

@QuentinMerabet
Hmmmm no need for a whole refresh (and refetch) as the subscription is returning a payload with the change you listened to.
3 likes

@nelsonmendezz_
Why you refresh with the router? It's a bad solution that you are showing
3 likes

@spattanaik01
Super informative 👍🏻
1 like

@realsoham774
@Sujal212004
1 like

@corntrop
Great
1 like

@_tqmvt
This is awesome
1 like

@Pew0h
Thanks 🤝
1 like