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

_action.ts

11 lines249 Bytes

1'use server'
2​
3import { revalidatePath } from 'next/cache'
4import { countRef } from './make-query-client'
5​
6export async function queryExampleAction() {
7 await Promise.resolve()
8 countRef.current++
9 revalidatePath('/', 'page')
10 return undefined