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

Function Outer

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

invalidateQueriesMethod · 0.45

Tested by

no test coverage detected