less than 1 minute read

Don’t use dynamic import carelessly in next.js. If you declare it inside a component, the dynamically imported component gets re-rendered from scratch every time that component re-renders.

const component = dynamic(() => import('@/component'), { ssr: false });

20241120

Tags:

Categories:

Updated:

Leave a comment