Solid JS queryclient not available.
Hey folks. I was playing around with solidJS and I wanted to use
tan stack query. I created my client, and my provider, wrapping my application, but when I tried to call any part of the library (useMutation, useQueryClient) I would get an error that the client isn't set. I double checked my work that the client passed as a prop to the provider is indeed not null: still nothing. Really not sure what Im doing wrong. I spun up a clone of the project using standard react and the exact same structure of code worked fine over there. Not really sure what I might be doing wrong in Solid. Any one have any suggestions for debugging this?1 Reply
rival-blackOP•3y ago
heres some code if that helps:
the issue is whenever I try to do anything with
createMutation or useQueryClient. Anything that tries to leverage the top level queryProvider state I get an error that the client isnt set.
im 99% certain I set it correctly.