PricingBlog

Is it possible to bind data to Supabase?

  • clinton_02060-1216854328237625355

    Clinton

    1 year ago

    When data is updated / added to a Supabase table I want the UI to update without refreshing, is this possible?
  • Tod-1216854330280382628

    Tod

    1 year ago

    Great energy @Clinton! Your continuous contribution to the toddle Community just made you advance to Community Level 3!
  • stockton_f-1216855813000400926

    Stockton

    1 year ago

    No, when you update data in Supabase, you need to run the query again to render the latest changes in the UI.
  • I suppose it is technically possible to do what you want but it would be stringing together some workarounds...
  • clinton_02060-1217004997061902398

    Clinton

    1 year ago

    I see. Is there a better tool than Supabase then for this functionality? This is fairly common in some SaaS applications like chat, comments, realtime analytics etc.
  • andreasmoller-1217011991139582013

    Andreas Møller

    1 year ago

    This is possible with supabase, but we do not have an integration for this yet, so you would have to write a custom action:

    https://supabase.com/docs/guides/realtime/broadcast
  • clinton_02060-1217012766213279805

    Clinton

    1 year ago

    Ah cool, okay i'll explore in more detail. I may need some more help 😊
  • clinton_02060-1217020256883577004

    Clinton

    1 year ago

    So if I have a table of data on the UI and two users can see the same data. Will I use the above to listen for changes so if UserA makes and update to a row or adds a row, this is automatically updated for userB.
  • Sorry, I'm a bit of a noob with these concepts.
  • clinton_02060-1217155799445536768

    Clinton

    1 year ago

    @Andreas Møller Is my assumption above correct?
  • andreasmoller-1217166669764366376

    Andreas Møller

    1 year ago

    Yes!
  • Though if you are ok with a slight delay, 3-5s then polling is usually a better option.
  • clinton_02060-1217401639409815642

    Clinton

    1 year ago

    Great thanks
  • roverdev1007-1242667913089908748

    RoverDev

    1 year ago

    Just checking out toddle for first time. This is critical for our app. Custom action example available? Baked-in to your Supa support would be better of course.