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

Function Outer

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

Source from the content-addressed store, hash-verified

3259 }
3260
3261 const Outer = () => {
3262 const [showComp, setShowComp] = createSignal(true)
3263 return (
3264 <div>
3265 <button
3266 onClick={() => {
3267 queryClient.invalidateQueries()
3268 setShowComp(!showComp())
3269 }}
3270 >
3271 toggle
3272 </button>
3273 {showComp() ? <Component /> : <div>not showing</div>}
3274 </div>
3275 )
3276 }
3277
3278 const rendered = renderWithClient(queryClient, () => <Outer />)
3279

Callers

nothing calls this directly

Calls 1

invalidateQueriesMethod · 0.45

Tested by

no test coverage detected