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

Function callbackTest2

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

Source from the content-addressed store, hash-verified

623
624 // @ts-expect-error
625 const callbackTest2: SuccessCallback = () => {
626 queryClient.setQueryData(key, (data) => {
627 expectTypeOf(data).toEqualTypeOf<number | undefined>()
628 return data
629 })
630 }
631})

Callers

nothing calls this directly

Calls 1

setQueryDataMethod · 0.45

Tested by

no test coverage detected