how to keep showing a loading spinner when the page is revalidating after a server action is invoked #50721
Unanswered
aaronvg
asked this question in
App Router
Replies: 3 comments
-
|
+1 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
This is similar to this. Not specific to server actions but having a way to indicate something is happening when upstream dependencies are slow is a requirement for my project. I was about ready to switch to server actions but it sounds looks like it won't help. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
+1 |
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.
-
Basically I do a startTransition and invoke a server action. The action completes, but then it takes a while for the page to actually refresh. I want to show a spinner (basically isPending should still be true) if the page is in the process of revalidating. How would I do this?
Beta Was this translation helpful? Give feedback.
All reactions