Add refetchInterval to session query for improved data consistency
This commit is contained in:
parent
cbbb53ac50
commit
f9b3f3e51e
1 changed files with 1 additions and 0 deletions
|
|
@ -32,6 +32,7 @@ export const SessionProvider: FC<{ children: ReactNode }> = ({ children }) => {
|
||||||
refetchOnReconnect: true,
|
refetchOnReconnect: true,
|
||||||
refetchOnMount: true,
|
refetchOnMount: true,
|
||||||
staleTime: 0,
|
staleTime: 0,
|
||||||
|
refetchInterval: 200,
|
||||||
});
|
});
|
||||||
|
|
||||||
// Invalidate session on route change
|
// Invalidate session on route change
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue