How to conditionally perform queries on different listview with Supabase?

Database & APIs

Hi everyone,

My issue is simple: I'm trying to perform different queries on different ListViews on the same page based on a condition. The issue is that I'm not sure how to proceed. As shown on the image below, I'm querying the same table, just with different set of filters.

What have you tried so far?

I tried using conditional builder, but as I understood it, this still performs the two queries, and just hides one of them. So not the most optimal process, especially because it can impacts the performance of the app.

Did you check FlutterFlow's Documentation for this topic?
Yes
1