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

Function callbackTest2

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

Source from the content-addressed store, hash-verified

238 const queryClient = new QueryClient()
239
240 const callbackTest2: SuccessCallback = () => {
241 queryClient.setQueryData(key, (data) => {
242 expectTypeOf(data).toEqualTypeOf<number | undefined>()
243 return data
244 })
245 }
246 expectTypeOf(callbackTest2).toEqualTypeOf<SuccessCallback>()
247 })
248

Callers

nothing calls this directly

Calls 1

setQueryDataMethod · 0.45

Tested by

no test coverage detected