Nextjs app reloads page instead of live refresh
Answered
Mickey posted this in #help-forum
MickeyOP
Hey,
I've recently migrated some components to the app router while still using the old page router for others. When I update page router components, they reload immediately. However, changes to app router components cause the entire page to reload, taking several seconds.
Do I need to adjust any settings to fix this, or should I migrate all components to the app router?
I've recently migrated some components to the app router while still using the old page router for others. When I update page router components, they reload immediately. However, changes to app router components cause the entire page to reload, taking several seconds.
Do I need to adjust any settings to fix this, or should I migrate all components to the app router?
Answered by gin
and make sure the components which are dynamically rendering things are appropriately defined for the app router
2 Replies
@Mickey Hey,
I've recently migrated some components to the app router while still using the old page router for others. When I update page router components, they reload immediately. However, changes to app router components cause the entire page to reload, taking several seconds.
Do I need to adjust any settings to fix this, or should I migrate all components to the app router?
if u want to use app router (you should) u have to migrate all components
and make sure the components which are dynamically rendering things are appropriately defined for the app router
Answer