onError and onSuccess callback deprecation
It's disappointing the onError and onSuccess calbacks are being deprecated from the useQuery hook. We used those quite heavily. What is the best standard to go by going forward for this?
1 Reply
like-gold•3y ago
What are you doing with them? Have you read: 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.