snapshot of https://github.com/TanStack/query.git (main, 2026-09-16; blobs > 131072B omitted)
This commit is contained in:
11
integrations/react-next-15/app/_action.ts
Normal file
11
integrations/react-next-15/app/_action.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
'use server'
|
||||
|
||||
import { revalidatePath } from 'next/cache'
|
||||
import { countRef } from './make-query-client'
|
||||
|
||||
export async function queryExampleAction() {
|
||||
await Promise.resolve()
|
||||
countRef.current++
|
||||
revalidatePath('/', 'page')
|
||||
return undefined
|
||||
}
|
||||
Reference in New Issue
Block a user