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

Function Disabled

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

Source from the content-addressed store, hash-verified

3786 .mockReturnValue(sleep(10).then(() => 'data'))
3787
3788 function Disabled() {
3789 useQuery(() => ({ queryKey: key, queryFn, enabled: false }))
3790 return null
3791 }
3792
3793 function Page() {
3794 const [enabled, setEnabled] = createSignal(false)

Callers

nothing calls this directly

Calls 1

useQueryFunction · 0.50

Tested by

no test coverage detected