We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
You can continue the conversation there. Go to discussion →
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi. I was wondering how you can use the persistQueryClient functionality with this?
The text was updated successfully, but these errors were encountered:
As in React, I guess. Provide the function what it needs.
Sorry, something went wrong.
Ok, this is what i currently have. But it doesn't seem to be working
const queryClient = new QueryClient({ defaultOptions: { queries: { staleTime: Infinity, refetchOnWindowFocus: false } } }); const persister = createSyncStoragePersister({ storage: window.localStorage, serialize: (data) => compress(JSON.stringify(data)), deserialize: (data) => JSON.parse(decompress(data)) }); persistQueryClient({ queryClient, persister: persister , maxAge: Infinity }); persistQueryClientRestore({ queryClient, persister: persister });
and
providers: [ provideQueryClient(queryClient) ]
Can you provide a stackblitz, please?
No branches or pull requests
Hi. I was wondering how you can use the persistQueryClient functionality with this?
The text was updated successfully, but these errors were encountered: