router.refresh(); don't work in Next 15? #74631
Unanswered
J4v4Scr1pt
asked this question in
Help
Replies: 3 comments
-
Faced same issue and not sure why they removed the refresh. |
Beta Was this translation helpful? Give feedback.
0 replies
-
same problem here... |
Beta Was this translation helpful? Give feedback.
0 replies
-
All "next dev --turbopack" operations run on cjs. It was probably possible to mix them up until around next14.21, but it seems that after 15 it became completely CJS. |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
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