#Does react-query work with IndexedDB?
7 messages ยท Page 1 of 1 (latest)
what kind of question is that ๐ . I could just say "yes" ....
Oh. I've never used it before because I use Remix but Remix's loaders only work on the server, so IndexedDb isn't available.
Any possibility you could show an example of how to use useQuery with Dexie.js? I purchased the ReactQuery course but it only shows how to fetch from an api.
what is Dexie.js ?
but it only shows how to fetch from an api.
doesn't matter. React Query is promise based. You can return a resolved or rejected promise from your QuerFn - doesn't matter if that comes over the network or not
It's a JS library for working with indexedDb.