Using RTK Query for slow computations #1898
StefanBRas
started this conversation in
General
Replies: 1 comment 2 replies
-
Yes, that's perfectly fine. There are also many people using it for stuff like interfacing with asynchronous functions, like interacting with the OS in Expo etc. Just make sure the result is serializable. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I found this article called "You can use React Query for slow computation, not just API" interesting and was wondering if the same can be done in RTKQ?
I haven't looked much into it, but as understand it this can be done by using queryFn.
And if it is doable, it it then actually smart? Or is there better ways for these kind of tasks.
Beta Was this translation helpful? Give feedback.
All reactions