ย ยทย CEO of GarageAPP

How to clear query cache?

Database & APIs

Im storing in a local variable the list of fav users IDs of the logged user so I dont need to make an api call for every user to print the fav toogle icon and also for the fav users page. The problem is that on the main page where are all the users profiles Im making an api call to supabase that puts the fav_users list into this local variable list if the local variable is empty, in case the user unistall the app and the local variable is empty after installing it.
The problem is that when i try to do this by populating the database before starting the test it puts in the local variable the fav_user which is what I want, but after eliminating the fav users from the local variable it makes the api call again, putting the users from the firstapi call despite now the database is empty. I dont know how to manage this. I would also like to know if its possible doing this only once when the app is oppened and not everytime i open the page

What have you tried so far?

I've tried making the api call before and after the condition

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