So I'm creating an app where it fetches data from the backend using some sort of rest api. However, it seems strange that the deleted data from the database still exist from my web app.
Here are some steps I've tried:
- Invalidating query using the query client from code itself
- Tried the following methods by manually invalidating, refetching, resetting, and even removing the query key from the devtools
- Already checked the backend part of my app and confirmed that there are no existing data being fetched in the database (as in zero data) or logs in my backend app that pertains a fetching happens.
Data still exist even after doing all of these steps
This problem gets solved when I use a different browser to which the data doesn't exist anymore. However, the old browser still fetches non existent stale data like it still exist. I wonder if there are any possible causes as to why it does that