How to use QueryClient within Actions
It's my first time using Solid Query in a Solid app and have questions about what the proper usage of it is within
action functions that come from Solid. Given the following:
I'm currently invoking useQueryClient inside of my action function which I believe is incorrect. What's the recommended approach to invalidating query cache keys within an action so that we can have all subscribers update their data due to the mutation that occurred against the cached key?
Is this where I should be considering the of use of the useMutation API from TanStack instead of the native action from SolidJS?1 Reply
optimistic-gold•9mo ago
Yeah I think you either use solid query or actions. I don't think you need both