You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The cache is invalidated when useMutation() is used.
I feel like invalidating over a cache key is more robust than directly invalidating telefunctions? It's also more TanStack Query idiomatic I think?
Also, maybe we can name it vike-react-telefunc-query for now (I want to experiment with a separate extension that doesn't use TanStack Query). I'm not sure yet which one will end up being the main extension. (Ideally, we can have a single vike-react-telefunc with an optional features/peer dependency with vike-react-query, but I don't know how feasible that is.)
Ideas for
vike-react-telefunc
Right now, to integrate
telefunc
and@tanstack/react-query
, we need to write some boilerplate for query invalidation:It would be nice, if this integration could be simplified, for example:
What do you think?
The text was updated successfully, but these errors were encountered: