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

page.tsx

16 lines334 Bytes

1import React from 'react'
2import { queryOptions } from '@tanstack/react-query'
3import { ClientComponent } from './client-component'
4​
5const options = queryOptions({
6 queryKey: ['foo'],
7})
8​
9export default function Home() {
10 return (
11 <main>
12 <ClientComponent />
13 Key: {JSON.stringify(options.queryKey)}
14 </main>
15 )