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

Function callbackTest2

packages/query-core/src/__tests__/queryClient.test-d.tsx:619–624  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

617
618 // @ts-expect-error
619 const callbackTest2: SuccessCallback = () => {
620 queryClient.setQueryData(queryKey, (data) => {
621 expectTypeOf(data).toEqualTypeOf<number | undefined>()
622 return data
623 })
624 }
625})

Callers

nothing calls this directly

Calls 1

setQueryDataMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…