mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
18 lines
365 B
TypeScript
18 lines
365 B
TypeScript
import { QueryClient } from "@tanstack/react-query";
|
|
|
|
export function createSproutQueryClient() {
|
|
return new QueryClient({
|
|
defaultOptions: {
|
|
queries: {
|
|
retry: 1,
|
|
refetchOnWindowFocus: false,
|
|
networkMode: "always",
|
|
gcTime: 5 * 60 * 1_000,
|
|
},
|
|
mutations: {
|
|
networkMode: "always",
|
|
},
|
|
},
|
|
});
|
|
}
|