S
SolidJS14mo ago
turtle15

Does Solidjs have its own tanstack query?

I do know that tanstack query supports solidjs, but to me, it seems solidjs tanstack query don't really have that much features
4 Replies
sindre
sindre14mo ago
solid's createResource gives you many of the same features that tanstack query gives. When I converted my app from React to Solid I also changed from tanstack query to createResource (I got some issues with tanstack and suspense that pushed me into doing the move, but I might have done it either way). tanstack has some nice features that createResource don't have, so if you use any of them you might want to use tanstack
Alex Lohr
Alex Lohr14mo ago
Yes, the solid version is not yet supporting all features of the react version. There's also https://primitives.solidjs.community/package/resource that augments createResource in order to fill some of the gaps.
Solid Primitives
A library of high-quality primitives that extend SolidJS reactivity
turtle15
turtle15OP14mo ago
Thank you!
daz.dev
daz.dev14mo ago
I'm struggling to understand how to use createMutation() with Solid Query and I don't see it documented. Specifically how to handle the first CreateMutationOption. Is createResource the way to go for posting data, or can you advise on what I need to be passing to the first argument of createMutation()?
Want results from more Discord servers?
Add your server