refactor(app): load sync state through TanStack Query (#23792)

This commit is contained in:
Brendan Allan 2026-04-28 12:24:30 +08:00 committed by GitHub
commit c8d9f7aa89
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 237 additions and 286 deletions

View file

@ -82,7 +82,15 @@ declare global {
}
function QueryProvider(props: ParentProps) {
const client = new QueryClient()
const client = new QueryClient({
defaultOptions: {
queries: {
refetchOnReconnect: false,
refetchOnMount: false,
refetchOnWindowFocus: false,
},
},
})
return <QueryClientProvider client={client}>{props.children}</QueryClientProvider>
}