Next.js Discord

Discord Forum

Nextjs 15 conditional dynamic import of component triggers page reload

Unanswered
Spectacled bear posted this in #help-forum
Open in Discord
Avatar
Spectacled bearOP
Upgraded to next 15 and it seems like using next/dynamic to conditionally load a component on the client causes the route to reload and shows the loading UI from loading.js file if there is one on the route. Before the upgrade, if the condition was met, the component would just be loaded into the ui without the route being refreshed or showing a loading UI.

0 Replies