Setting state cache on success
The name falls back to the name fetched from the server once a useQuery completes. However, if the name has changed or the location has been deleted, I want to update the local cache.
Is the correct way to do this in the queryFn? This thread recommends a pure queryFn but then doesn't after the callbacks are removed.
Curious if anyone has insights or recommendations!