mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-08 22:48:14 -05:00
Solved hydration error
This commit is contained in:
@@ -17,7 +17,16 @@ export default function RootLayout({
|
||||
<head>
|
||||
<script
|
||||
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>
|
||||
|
||||
Reference in New Issue
Block a user