MCPcopy Create free account
hub / github.com/TanStack/query / App

Function App

examples/solid/devtools-panel/src/index.tsx:15–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13const queryClient = new QueryClient()
14
15export default function App() {
16 const [isOpen, setIsOpen] = createSignal(false)
17
18 return (
19 <QueryClientProvider client={queryClient}>
20 <Example />
21 <button
22 onClick={() => setIsOpen(!isOpen())}
23 >{`${isOpen() ? 'Close' : 'Open'} the devtools panel`}</button>
24 <Show when={isOpen()}>
25 <SolidQueryDevtoolsPanel onClose={() => setIsOpen(false)} />
26 </Show>
27 </QueryClientProvider>
28 )
29}
30
31function Example() {
32 const query = useQuery(() => reposQueries.detail())

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected