Skip to content

Commit

Permalink
fix: typing
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <[email protected]>
  • Loading branch information
Innei committed Jul 15, 2024
1 parent f4d66cf commit b1f9ee2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/providers/root/react-query-provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ export const queryClient = new QueryClient({
},
})

declare module '@tanstack/react-query' {
interface Meta {
queryMeta: { persist: boolean }
}

interface Register extends Meta {}
}

const persistOptions: Omit<PersistQueryClientOptions, 'queryClient'> = {
persister: asyncStoragePersister,
maxAge: 1000 * 60 * 60 * 24 * 7, // 1 week
Expand Down

0 comments on commit b1f9ee2

Please sign in to comment.