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

Function callbackTest

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

Source from the content-addressed store, hash-verified

226 const queryClient = new QueryClient()
227
228 const callbackTest: SuccessCallback = () =>
229 queryClient.setQueryData(key, (data) => {
230 expectTypeOf(data).toEqualTypeOf<number | undefined>()
231 return data
232 })
233 expectTypeOf(callbackTest).toEqualTypeOf<SuccessCallback>()
234 })
235

Callers

nothing calls this directly

Calls 1

setQueryDataMethod · 0.45

Tested by

no test coverage detected