how to skip caching for notFound or redirect? #81051
Unanswered
hkmute
asked this question in
App Router
Replies: 1 comment
-
I think, maybe here you want to group everything into a function, call it Wrap that const getBlogDetailsForPage = React.cache(async (slug, locale) => {/* call getBlogBySlug */}); |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a the correct way to prevent ISR caching when
notFound
orredirect
is used in app router?I am trying to create a route handler that calls
revalidatePath
and fetch it when no server data is available for a page. But it seems to be unstable when used withgenerateMetadata
which fetches the same data insideSample code
Beta Was this translation helpful? Give feedback.
All reactions