first commit
This commit is contained in:
commit
2d54228143
28 files changed
+8067
No files matched your search
@@ -0,0 +1,11 @@
|
||||
"use server";
|
||||
|
||||
import { revalidatePath, revalidateTag } from "next/cache";
|
||||
|
||||
export async function refreshWeatherData() {
|
||||
// Perform your mutation or database operation here
|
||||
|
||||
// Revalidate the specific path
|
||||
revalidatePath("/weather");
|
||||
revalidateTag("weather-data", "max");
|
||||
}
|
||||
Reference in new issue
Block a user