sindre
sindre
SSolidJS
Created by turtle15 on 10/31/2023 in #support
Does Solidjs have its own tanstack query?
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
5 replies
SSolidJS
Created by sindre on 1/28/2023 in #support
Component is called twice when using Suspense, createResource and solid router
Update: Looks like there was a Show that reevaluated its children. Is that the correct behaviour? Especially since the cleanup was not called. (What is the correct way to load some data and then show the data when using Suspense. As far as I can understand, under Suspense I still need to guard against undefined values and return something else, since the content is evaulated)
2 replies