Skip navigation
Real-time data updates with Next.js and Supabase
0:00 / 1:10

Real-time data updates with Next.js and Supabase

Alex Sidorenko

@asidorenko_35K followers

Visit on X
781 likesDownloadOriginal post

53,611 views

Real-time data updates with Next.js and Supabase

9 Comments

Comments from the original post on X (Twitter)

  • Alex Sidorenko's profile picture

    @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

  • Kajetan Szymczak's profile picture

    @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

  • Quentin Merabet's profile picture

    @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

  • Nelson Hernández's profile picture

    @nelsonmendezz_

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

    3 likes

  • Shakti Pattanaik's profile picture

    @spattanaik01

    Super informative 👍🏻

    1 like

  • Soham Patil's profile picture

    @realsoham774

    @Sujal212004

    1 like

  • Corntrop's profile picture

    @corntrop

    Great

    1 like

  • Taylor Lee's profile picture

    @_tqmvt

    This is awesome

    1 like

  • Pewoh's profile picture

    @Pew0h

    Thanks 🤝

    1 like