10 lines
227 B
TypeScript
10 lines
227 B
TypeScript
![]() |
'use server'
|
||
|
|
||
|
import { revalidatePath } from 'next/cache'
|
||
|
|
||
|
// Server Actions
|
||
|
export async function handleDelete() {
|
||
|
// revalidatePath only invalidates the cache when the included path is next visited.
|
||
|
revalidatePath('/')
|
||
|
}
|