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

Function options

packages/angular-query/src/__tests__/inject-query.test-d.ts:23–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21
22 it('tData should be defined when passed through queryOptions', () => {
23 const options = () =>
24 queryOptions({
25 queryKey: ['key'],
26 queryFn: () => {
27 return {
28 wow: true,
29 }
30 },
31 initialData: {
32 wow: true,
33 },
34 })
35 const { data } = injectQuery(options)
36
37 expectTypeOf(data).toEqualTypeOf<Signal<{ wow: boolean }>>()

Callers 1

injectMutationStateFunction · 0.50

Calls 1

queryOptionsFunction · 0.50

Tested by

no test coverage detected