T
TanStack3y ago
extended-salmon

React Query Persist Question

I am looking into using Persisters for a project & feel like I have set everything up correctly between documentation & watching videos. I however am getting "Cannot read properties of undefined (reading 'restoreClient')" & "Cannot read properties of undefined (reading 'removeClient')" errors whenever I try to run the project. I've recreated the issue in a sandbox: https://codesandbox.io/p/sandbox/brave-voice-x8z6m8?embed=1&file=%2Fsrc%2Findex.jsx Any advice is appreciated!
brave-voice-x8z6m8
CodeSandbox is an online editor tailored for web applications.
1 Reply
extended-salmon
extended-salmonOP3y ago
Was missing a second set of { } around the persister under persistOptions

Did you find this page helpful?