Cache as Backup but cache is never used
I wanted to use React Query to:
1) Cache data so it gets only retrieved from the backend every 5 min and no requests are wasted
2) Use Cached data if the internet connection is lost
This is how I setup my client:
And this is how i use my api for testing atm just a GET Request with all data from my backend
However for some reason it ALWAYS seems to retrieve from the backend and also when the connection is lost it just pauses the query. What am I doing wrong?
I also set up so it know when its online like shown in the docs
Here a demonstration of my issue
https://youtu.be/R27mCA9-IuU
1) Cache data so it gets only retrieved from the backend every 5 min and no requests are wasted
2) Use Cached data if the internet connection is lost
This is how I setup my client:
And this is how i use my api for testing atm just a GET Request with all data from my backend
However for some reason it ALWAYS seems to retrieve from the backend and also when the connection is lost it just pauses the query. What am I doing wrong?
I also set up so it know when its online like shown in the docs
Here a demonstration of my issue
https://youtu.be/R27mCA9-IuU
