Replies: 1 comment
-
|
I would like to know this as well. I have been trying to find a solution for a while now, but it seems like there is no official Next.js API to track revalidatePath completion. Is there any officially supported solution for this? What would be the ideal practice for when we have a form submission which invokes a server action with a revalidation after success? Cause I do not really like the idea of having a stale UI for few seconds before the data is refreshed... Did you find any solution @asnaeb ? |
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.
-
Summary
In AppRouter, when calling
revalidatePathin a server action, is there any way to know when the revalidation has been completed? Let's say we have a server component fetching data and passing it down to a client component in which we are calling a server action which callsrevalidatePathon that path. Is there any way to know when the revalidation has been completed and the data has been refetched?Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions