mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
Signed-off-by: Wes <wesbillman@users.noreply.github.com> Co-authored-by: Pinky <44b8e82baa6e0e254e0208d68f335c283c94e7b78dd1fa10d5a49d3f13dd0435@sprout-oss.stage.blox.sqprod.co>
18 lines
363 B
TypeScript
18 lines
363 B
TypeScript
import { QueryClient } from "@tanstack/react-query";
|
|
|
|
export function createBuzzQueryClient() {
|
|
return new QueryClient({
|
|
defaultOptions: {
|
|
queries: {
|
|
retry: 1,
|
|
refetchOnWindowFocus: false,
|
|
networkMode: "always",
|
|
gcTime: 5 * 60 * 1_000,
|
|
},
|
|
mutations: {
|
|
networkMode: "always",
|
|
},
|
|
},
|
|
});
|
|
}
|