Skip to contentOpen History to see the last commit
queries.ts
11 lines294 Bytes
1import { queryOptions } from '@tanstack/preact-query' 2import { postsAPI } from './api' 4export const postsQueries = { 5 all: () => ['posts'] as const, 8 queryKey: [...postsQueries.all(), 'list'] as const, 9 queryFn: () => postsAPI.getPosts(),