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.