Understanding revalidatePath vs current documentation #81385
Unanswered
gmoniava
asked this question in
App Router
Replies: 1 comment 10 replies
-
Hi!
About your example: Summary:
Hope this clears things up! Let me know if you have more questions or want to discuss in more detail. |
Beta Was this translation helpful? Give feedback.
10 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.
-
I was trying to understand
revalidatePath
but current docs seem a bit confusing to me, here it is:To which cache does the first bullet apply? It does not say. Is it client side router cache? If yes, then next bullet is confusing because it says that all routes are invalidated. Or is it full route cache? What about data cache?
Because I got confused in the following example when I call
deleteItem
server function, the data gets refreshed immediately.But the docs above say after it is next visited. So I was not expecting it to get refreshed immediately. So which part of above quote explains this behavior?
Example:
@icyJoseph
Beta Was this translation helpful? Give feedback.
All reactions