onSuccess Alternative for react query v5
I use onSuccess callback in v4 for example I send notif when It is fired but How could I do this callback?
3 Replies
exotic-emerald•3y ago
the global callbacks on the query cache
fascinating-indigoOP•3y ago
but how can I override? Should I use queryClient? btw I dont use v5, I use v4 but I search how to migrate v4 to v5. Will the Community prepare migration documentation for v5?
exotic-emerald•3y ago
Migrating to TanStack Query v5 | TanStack Query Docs
Breaking Changes
v5 is a major version, so there are some breaking changes to be aware of: