Migrating to React Query v5
Hello, is it safe to migration to React Query v5 using Refine? Our code is ok to go but Im not sure if it'll break Refine dependencies
9 Replies
Hi @bombillazo. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
Hmm, I don't know enough to give you a confident answer yet. The information extracts provided do not contain specific details about migrating to React Query v5 using Refine. I recommend checking the official Refine documentation (https://refine.dev/docs) for more detailed information on this topic.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
<@260960777010151436> kapa.ai is still learning and improving, please let us know how it did by reacting below
afraid-scarlet•10mo ago
Any response from the Refine team?
sensitive-blue•10mo ago
Hello @bombillazo sorry for the late response, I'll check with the team and get back to you!
afraid-scarlet•10mo ago
Thanks!
sensitive-blue•9mo ago
Hello @bombillazo we've discussed internally and since react-query has some breaking changes (ie: onSuccess, onError, onSettled etc.), we need to plan how we can do the upgrade, without doing breaking change for refine users. We may provide these callbacks on our new version, as a polyfill temporarily, so users won't have issues.
Would appreciate if you can create a GitHub issue, since you also did the upgrade and have some context, would be nice if you can provide us details, insights. We can continue discussion there and see how we can release it.
afraid-scarlet•9mo ago
Ok ill create an issue for this with some steps we took as well. Thanks for the update!
afraid-scarlet•9mo ago
I created this issue: https://github.com/refinedev/refine/issues/5370
GitHub
[FEAT] React-Query v5 compatibility · Issue #5370 · refinedev/refine
Is your feature request related to a problem? Please describe. We've created a branch to migrate our application code to RQ v5, but have refrained since Refine uses RQ under the hood and want t...
sensitive-blue•9mo ago
Great! Thanks @bombillazo much appreciated!