Skip to content

Commit b5678ca

Browse files
fix(Next.js - App Router Example): don't remove styles after hydration (#5170)
1 parent 662bc9f commit b5678ca

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

examples/nextjs-app/app/CssRegistry.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,6 @@ export function CssRegistry({ children }: { children: React.ReactNode }) {
1616
);
1717
});
1818

19-
useEffect(() => {
20-
const style = document.getElementById('server-side-styles');
21-
if (style) {
22-
style.parentNode?.removeChild(style);
23-
}
24-
}, []);
25-
2619
return (
2720
<JssProvider registry={registry} generateId={generateId}>
2821
{children}

0 commit comments

Comments
 (0)