MCPcopy Index your code
hub / github.com/TanStack/query / Outer

Function Outer

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

Source from the content-addressed store, hash-verified

3638 }
3639
3640 const Outer = () => {
3641 const [showComp, setShowComp] = createSignal(true)
3642 return (
3643 <div>
3644 <button
3645 onClick={() => {
3646 queryClient.invalidateQueries()
3647 setShowComp(!showComp())
3648 }}
3649 >
3650 toggle
3651 </button>
3652 {showComp() ? <Component /> : <div>not showing</div>}
3653 </div>
3654 )
3655 }
3656
3657 const rendered = render(() => (
3658 <QueryClientProvider client={queryClient}>

Callers

nothing calls this directly

Calls 1

invalidateQueriesMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…