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

Function callbackTest

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

Source from the content-addressed store, hash-verified

605
606 // @ts-expect-error
607 const callbackTest: SuccessCallback = () =>
608 queryClient.setQueryData(queryKey, (data) => {
609 expectTypeOf(data).toEqualTypeOf<number | undefined>()
610 return data
611 })
612})
613
614it('should infer types correctly with block body arrow functions', () => {

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…