ReactQuery Data error
I am saving token in localstorage with PersistQueryClientProvider
but getting error message
// useStorageQuery.ts
I know problem is
How to I can return undefined? or other solution?
8 Replies
deep-jade•3y ago
you can't return undefined. return
null insteadambitious-aquaOP•3y ago
thanks for your quickly reply
my solution is right?
I only wanna persiste query with Token key
this is right?
deep-jade•3y ago
I'd use the new persister in v5
ambitious-aquaOP•3y ago
yup
I am v5
deep-jade•3y ago
but also, I'd never store tokens in localstorage for security reasons 😬
ambitious-aquaOP•3y ago
ok
I have question about cookie
Could you help me?
deep-jade•3y ago
I'm not an expert on that 🙂
ambitious-aquaOP•3y ago
ok
thanks
have a nice day