mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-09 15:07:55 -05:00
Solved hydration error
This commit is contained in:
@@ -17,7 +17,16 @@ export default function RootLayout({
|
|||||||
<head>
|
<head>
|
||||||
<script
|
<script
|
||||||
dangerouslySetInnerHTML={{
|
dangerouslySetInnerHTML={{
|
||||||
__html: `window.INITIAL_TIMESTAMP = ${Date.now()};`,
|
__html: `window.INITIAL_TIMESTAMP = 0;`,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
<script
|
||||||
|
dangerouslySetInnerHTML={{
|
||||||
|
__html: `
|
||||||
|
if (typeof window !== 'undefined') {
|
||||||
|
window.INITIAL_TIMESTAMP = ${Date.now()};
|
||||||
|
}
|
||||||
|
`,
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
Reference in New Issue
Block a user