When to use fetch collection when using Supabase real-time

Hi, can someone explain to me when to use fetch collection with supabase real-time? Even without real-time I am still confused when to use fetch collection. If not real time, do I have to fetch everytime I update/add to database? When use real-time when do I use the fetch method?

Hi Kkairul,

WeWeb create web sockets through Supabase library. So when there is a change on Supabase, it’s immediately push to WeWeb. You don’t need to fetch the collection

Hi @Mael,

I configured WeWeb and Supabase, but I need to click on reload to get latest data from database

I used grid to show data from real-time data table

Do I need to publish app to avail this functionality?

Hello,

You don’t need to publish to use realtime table from supabase. Did you set the table to realtime in WeWeb and Supabase?
You can have a look to our documentation about it here: Supabase data source | Weweb documentation