Files
Homarr/packages/common/src/revalidate-path-action.ts
Meier Lukas 6738296830 refactor: move modals to seperate package (#1135)
* refactor: move modals to seperate package

* fix: format issue

* fix: lint issues

* fix: format issue

* fix: only used as type
2024-09-16 19:53:37 +02:00

8 lines
201 B
TypeScript

"use server";
import { revalidatePath } from "next/cache";
export async function revalidatePathActionAsync(path: string) {
return new Promise((resolve) => resolve(revalidatePath(path, "page")));
}