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

Function SolidApp

examples/solid/astro/src/components/SolidApp.tsx:30–45  ·  view source on GitHub ↗
(props: { pokemon?: string })

Source from the content-addressed store, hash-verified

28const MAX_POKEMONS = 100
29
30export const SolidApp = (props: { pokemon?: string }) => {
31 const client = new QueryClient()
32
33 const search = getSearchParams(props.pokemon || '')
34
35 return (
36 <QueryClientProvider client={client}>
37 <SolidQueryDevtools />
38 <Suspense fallback={'Loading'}>
39 <PokemonIdContext.Provider value={search}>
40 <App />
41 </PokemonIdContext.Provider>
42 </Suspense>
43 </QueryClientProvider>
44 )
45}
46
47const App = () => {
48 return (

Callers

nothing calls this directly

Calls 1

getSearchParamsFunction · 0.90

Tested by

no test coverage detected