Triggering Callbacks on Supabase Streaming Query Data Changes (FlutterFlow V2 Integration)

Database & APIs

Hi community,

I'm using Supabase Streaming Queries with the V2 integration in FlutterFlow. Everything is working as expected, and the data updates dynamically when changes occur in the database.

However, I need to know if it's possible to trigger a callback or action whenever the data is refreshed or updated by the streaming query. My use case involves evaluating the updated data to make decisions, such as navigating to another page when a process is completed.

Is there a built-in mechanism in FlutterFlow to achieve this, or would I need to implement a custom solution? Any guidance would be appreciated.

Thanks in advance!

What have you tried so far?
  • Direct Action Triggers in FlutterFlow:
    I explored FlutterFlow’s action triggers tied to the query but couldn’t find a way to directly react to the updates from Supabase Streaming Queries.

  • Workarounds with Timers:
    Attempted a workaround by periodically polling or using a timer to evaluate the data manually, but this defeats the purpose of the dynamic streaming feature and isn't efficient.

  • Conditional UI Logic:
    Tried to use conditional visibility and page actions tied to data states in FlutterFlow, but it doesn’t allow for dynamic callbacks or process evaluation in the way I need.

Did you check FlutterFlow's Documentation for this topic?
Yes
2
5 replies