Backend query executed on every page

Database & APIs

Hi all,

I'm facing an issue where a backend query (API call) that is set up in a page is executed on every page after visiting the page where the query is set up. To give more context, I have 3 pages, HomePage, ProductDetail (where the backend query is set up) and UserProfile. On app initialisation I land on the home page and no query is run, if I go to the UserProfile page, no query, when I go to the ProductDetail page then the query is run to load the content. After this point, if I go to the HomePage or the UserProfile, the query is also executed.

Any idea why this might be happening?

What have you tried so far?

.

Did you check FlutterFlow's Documentation for this topic?
No
5
3 replies