({ children })
| 23 | } |
| 24 | }); |
| 25 | } |
| 26 | |
| 27 | export 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} |
nothing calls this directly
no outgoing calls
no test coverage detected