Open History to see the last commit
1import { queryOptions } from '@tanstack/vue-query'
2β
3/** @public */
4export const undefinedInitialDataOptions = queryOptions({
5 queryKey: ['undefined-initial-data'],
6 queryFn: async () => ({ value: 'data' }),
7})
8β
9/** @public */
10export const definedInitialDataOptions = queryOptions({
11 queryKey: ['defined-initial-data'],
12 queryFn: async () => ({ value: 'data' }),
13 initialData: { value: 'initial data' },
14})