Solutionunvalidated

I think you can achieve that by using the `ensureQueryData` function. Tension: This way you first check on cache for the given key, and if nothing is found it runs the function and returns the result. Outcome: Another option could be to by making a custom hook use `getQueryData` to read the cache and if nothing is found it will return undefined so you could manage to call to your api.

1bb2c479-0885-4369-92a2-fd50747773f9

I think you can achieve that by using the ensureQueryData function. Tension: This way you first check on cache for the given key, and if nothing is found it runs the function and returns the result. Outcome: Another option could be to by making a custom hook use getQueryData to read the cache and if nothing is found it will return undefined so you could manage to call to your api.