T
TanStack3y ago
molecular-blue

Zodios query invalidations

Hello all, I am wondering if anyone has used zodios? if you haven't its pretty cool. I am working on trying to get invalidation working, but the example in the docs are unclear just wondering if theres a better way? https://codesandbox.io/s/zodios-hooks-select-bug-forked-9ye4s8?file=/src/App.tsx, how would I invalidate this? if i am in a different component? just trying to do exactly the way react-query handles invalidation
No description
1 Reply
molecular-blue
molecular-blueOP3y ago
queryKey: apiHook.getKeyByAlias("TODO") here is the answer if anyone is looking for it

Did you find this page helpful?