b1503e13e8
Serverside Dynamically loaded CSS module file insertion adds css-files as usual static files with special data-n-p tag, that is used in page transition logic. That files get removed on page transition cause they are not explicitly required in scope of page. Mini-css-extract-plugin adds style tags at chunk insertion without any tags and leave them be, no matter how many page transitions were made. I removed data-n-p tag from dynamically loaded css module files and added new data-n-d tag for it. Fixes #16950
12 lines
220 B
JavaScript
12 lines
220 B
JavaScript
import dynamic from 'next/dynamic'
|
|
|
|
const Hello = dynamic(import('../../components/dynamic-css/with-css'))
|
|
|
|
export default function PageChange2() {
|
|
return (
|
|
<div>
|
|
PageChange2
|
|
<Hello />
|
|
</div>
|
|
)
|
|
}
|