Skip to content
Source
Sign inSign up
TanStack/router
Open History to see the last commit

postsQueryOptions.tsx

7 lines196 Bytes

1import { queryOptions } from '@tanstack/solid-query'
2import { fetchPosts } from './posts'
3​
4export const postsQueryOptions = queryOptions({
5 queryKey: ['posts'],
6 queryFn: () => fetchPosts(),
7})