RevalidatePath refetches font, causing jitter #50782
Unanswered
codinginflow
asked this question in
App Router
Replies: 2 comments 9 replies
-
|
I'm having the same issue. It's been a problem since app router was introduced. The previous way of doing mutations, by using a client component and calling router.refresh() produces the same jitter. I've also seen it in a few videos where people are demoing the app router features. I'm surprised no one else has mentioned it. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I just noticed that the jitter is only there in dev mode. After building the project, it's gone. |
Beta Was this translation helpful? Give feedback.
9 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.
-
In the gif below, the button clicks are handled via server actions. After executing the server action, I call
revalidatePathto refresh the page. This causes a visible jitter in the UI. In the network tab, I can see that the next/Font is reloaded and if I disable the font, the jitter is gone.Did anyone run into the same issue? I know server actions are alpha but revalidatePath should be stable.
Beta Was this translation helpful? Give feedback.
All reactions