mirror of
https://github.com/ichsankurnia/hats-app.git
synced 2026-12-05 10:46:29 +00:00
11 lines
317 B
TypeScript
11 lines
317 B
TypeScript
"use server"
|
|
|
|
import { revalidatePath, revalidateTag } from "next/cache"
|
|
|
|
export async function revalidateTagFromClient(tagName: string) {
|
|
revalidateTag(tagName, 'default')
|
|
}
|
|
|
|
export async function revalidatePathFromClient(originalPath: string, type?: "layout" | "page") {
|
|
revalidatePath(originalPath, type)
|
|
} |