I'm studying nextJs13, I didn't understand how revalidatePath works.
I don't understand how can I use revalidatePath, is a function ? Or is a GET endpoint ?
I have two differnt page, when I try to modify the first page I need that this modify will be visible on the second page. But when I change page, I can see the modify.
I tryed too with no-cache but I can't . Anybody could help me ?
const editProfileUser = async (payload) => {
try {
const editProfileUser = await putAutheticatedAPI({
payload,
endpoint: SETTINGS_PROFILE_USER,
token: session.user.access_token,
})
revalidatePath('user/profile')
return editProfileUser
} catch (e) {
setError(true)
}
}
I get this error :
static generation store missing in revalidateTag user/profile