Open History to see the last commit
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 )
16}