MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / QueryProvider

Function QueryProvider

apps/ui/src/app/providers/QueryProvider.tsx:25–34  ·  view source on GitHub ↗
({ children })

Source from the content-addressed store, hash-verified

23 }
24 });
25}
26
27export const QueryProvider: FC<PropsWithChildren> = ({ children }) => {
28 const [client] = useState(makeQueryClient);
29 /*
30 * The devtools panel floats over app controls, so it is opt-in: `?devtools`
31 * in dev. `env.DEV &&` keeps the production build free of the panel.
32 */
33 const [showDevtools] = useState(isDevtoolsRequested);
34
35 return (
36 <QueryClientProvider client={client}>
37 {children}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected