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?
Backend query executed on every page
Database & APIs
.
No
5
3 replies