15 lines
330 B
TypeScript
15 lines
330 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('/')
|
|
}
|
|
|
|
export async function fetchPluginDetail(id: string) {
|
|
// Fetch plugin detail TODO
|
|
return { id }
|
|
}
|