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

Function Outer

packages/solid-query/src/__tests__/useQuery.test.tsx:3209–3224  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3207 }
3208
3209 const Outer = () => {
3210 const [showComp, setShowComp] = createSignal(true)
3211 return (
3212 <div>
3213 <button
3214 onClick={() => {
3215 queryClient.invalidateQueries()
3216 setShowComp(!showComp())
3217 }}
3218 >
3219 toggle
3220 </button>
3221 {showComp() ? <Component /> : <div>not showing</div>}
3222 </div>
3223 )
3224 }
3225
3226 const rendered = renderWithClient(queryClient, () => <Outer />)
3227

Callers

nothing calls this directly

Calls 1

invalidateQueriesMethod · 0.45

Tested by

no test coverage detected