flat-fuchsia
flat-fuchsia8mo ago

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
kapa.ai
kapa.ai8mo ago
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: ----------------------
kapa.ai
kapa.ai8mo ago
<@260960777010151436> kapa.ai is still learning and improving, please let us know how it did by reacting below
flat-fuchsia
flat-fuchsia8mo ago
Any response from the Refine team?
genetic-orange
genetic-orange8mo ago
Hello @bombillazo sorry for the late response, I'll check with the team and get back to you!
flat-fuchsia
flat-fuchsia8mo ago
Thanks!
genetic-orange
genetic-orange8mo 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.
flat-fuchsia
flat-fuchsia8mo ago
Ok ill create an issue for this with some steps we took as well. Thanks for the update!
flat-fuchsia
flat-fuchsia8mo ago
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...
genetic-orange
genetic-orange8mo ago
Great! Thanks @bombillazo much appreciated!