EinsteinE
Convex Community3w ago
1 reply
Einstein

convexQuery with tanstack/db

I saw that convex works with tanstack query, and you can create a collection in tanstack/db from tanstack query so I thought stitching the three together would work.

but I found a little problem which is that convexQuery doesn't return a queryFn, and expects tanstack query to use the defaultFn specificed in the Provider.

but tanstack/db doesn't work with that, and it errors saying that there were no queryFn provided.

is there a quick fix to this?
Was this page helpful?