Realtime data and on realtime database change

Hi everyone!

I’m relatively new to the WeWeb environment. I have 2 types of tables in Supabase: 1 - Updates at given intervals and a new element is created, instead of the data of an old element changing. 2 - Updates at given intervals, but no new element is created, instead the existing one is updated.

I managed to solve the 2nd type with realtime collections, and I also turned it on in Supabase, but it only refreshes in realtime in preview. It works perfectly there, but when I deploy and view it on my own domain, it doesn’t work unless I refresh the page.

For the 1st type, I started building the workflow, but it’s not working and unfortunately I’m stuck because I don’t know how to solve it.

So my questions are:

  • Why does it only refresh in preview, why not in live?

  • How could I modify my workflow to work correctly, or what’s the standard method for this?

Hi Balint, welcome to the community :waving_hand:

Thanks for sharing the details! A couple of things to try:

  • Double-checking that realtime is enabled for your tables in both Supabase and WeWeb settings.​
  • Switching from collection-based data sources to using variables and page/app-level workflows for realtime, which has solved unpredictable update issues for some.​
  • Ensuring users are properly subscribed to realtime channels each time the page loads.​

You could also read what other community members have tried:

And read our docs

Hope this helps.