Re:TanStack Query(a.k.a. React Query) v5 announced
by supermatt on Thursday October 19, 2023 @07:59AM
(#37941670)
OOTB offline-first sounds handy. With SWR I had to modify the fetcher to query and store in indexedDB and then later replay to remote, which while not exactly difficult did require some effort.
I guess its worth giving it a spin and see for myself :)
People do seem to prefer RQ generally, maybe because it’s a bit more intuitive and better documented. It might be a better choice for more complex caching and mutating needs. SWR is still so easy and intuitive as it is, so I haven’t seen a reason to prefer RQ by default.