Haven’t tried to do that, so not sure. Using next/dynamic might lead to one additional JS bundle.
Also, if you want multiple entrypoints (like pages/index.js and pages/account.js) you’d need to remember to do the dynamic import in each file separately.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
What's the difference between this method and simply importing my main App component with next/dynamic and passing {ssr: false}?
Haven’t tried to do that, so not sure. Using
next/dynamicmight lead to one additional JS bundle.Also, if you want multiple entrypoints (like
pages/index.jsandpages/account.js) you’d need to remember to do the dynamic import in each file separately.