on* callbacks alternative
Hello, I've seen that several query callbacks (e.g
onSuccess) will be deprecated in the next major version. Unfortunately I didn't find any alternative on the v5 Roadmap. How will it look like?2 Replies
conscious-sapphire•3y ago
There are some alternatives listed in a blog post from the maintainer: https://tkdodo.eu/blog/breaking-react-querys-api-on-purpose
Breaking React Query's API on purpose
Why good API design matters, even if it means breaking existing APIs in the face of resistance.
foreign-sapphire•3y ago
what are you doing in onSuccess of a Query?