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
parent cd7ec93cdf
commit c8d9f7aa89
7 changed files with 237 additions and 286 deletions
+9 -1
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>
}