feat: add async suffix eslint rule (#485)
This commit is contained in:
@@ -2,6 +2,6 @@
|
||||
|
||||
import { revalidatePath } from "next/cache";
|
||||
|
||||
export async function revalidatePathAction(path: string) {
|
||||
export async function revalidatePathActionAsync(path: string) {
|
||||
return new Promise((resolve) => resolve(revalidatePath(path, "page")));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user