Files
next.js/test/e2e/app-dir/navigation/app/popstate-revalidate/foo/action.ts

9 lines
140 B
TypeScript

'use server'
import { revalidatePath } from 'next/cache'
export async function action() {
revalidatePath('/', 'layout')
return true
}