router.refresh(); don't work in Next 15? #74631
Unanswered
J4v4Scr1pt
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
I want to update a button based on if a user has answered a question or not. This button is rendered in my main navigation-header. So it's not part of any specific route, rather all routes. In NextJs 14 this worked as expected, but after an update to NextJs 15 this started to not trigger the
router.refresh()
it seems. If I do a manual F5 it works ofc.I can't really understand why, some light on this would be much appreciated!
This is a simplified version of the whole structure to hopefully get an idea on how it looks and works.
MainLayoutFile(server):
Navigation(server):
Header (server):
QuestionButtonServer:
QuestionButtonClient:
QuestionButtonCanAnswer:
Modal:
PostAnswerAction:
The util GET:
In next.config I do have:
Additional information
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions