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

Function callbackTest2

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

Source from the content-addressed store, hash-verified

778
779 // @ts-expect-error
780 const callbackTest2: SuccessCallback = () => {
781 queryClient.setQueryData(key, (data) => {
782 expectTypeOf(data).toEqualTypeOf<number | undefined>()
783 return data
784 })
785 }
786})

Callers

nothing calls this directly

Calls 1

setQueryDataMethod · 0.45

Tested by

no test coverage detected