T
TanStack•3y ago
flat-fuchsia

Alternative to onSuccess in useQuery

hello everyone, im kinda new to this react-query and there's something i'm curious about concerning useQuery hook, i want to add the onSuccess and onError property after queryFn but it seems that it's gotten deprecated in v4 and ultimately in v5, is there any workaround to it, i don't want to use status.isSuccess because im not rendering anything instead i want to put some logic after the queryFn succeeds.
2 Replies
extended-salmon
extended-salmon•3y ago
See tkdodo.eu blog 😉
flat-fuchsia
flat-fuchsiaOP•3y ago
many thanks

Did you find this page helpful?