Manually preventing a page revalidation #74589
Unanswered
pepew-le-boss
asked this question in
Help
Replies: 1 comment
-
Maybe you could throw an exception? https://nextjs.org/docs/app/building-your-application/data-fetching/incremental-static-regeneration#handling-uncaught-exceptions
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a way to manually prevent a page revalidation ?
Let's take this scenario:
page
:CategoriesWrapper
:Currently, if a user visits the website after 10 minutes and revalidates the page, an error in the
categoriesQuery
will result in the page being cached with empty categories for the next 10 minutes.I've tried with
revalidatePath("/")
but I get this error:Page changed from static to dynamic at runtime /, reason: revalidatePath / see more here https://nextjs.org/docs/messages/app-static-to-dynamic-error
Beta Was this translation helpful? Give feedback.
All reactions