We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2561d81 commit 98129abCopy full SHA for 98129ab
src/client.tsx
@@ -6,6 +6,7 @@ import { setupClientRouter } from "System/Router/clientRouter"
6
import { setupSentryClient } from "System/Utils/setupSentryClient"
7
import { setupWebVitals } from "System/Utils/setupWebVitals"
8
import { hydrateRoot } from "react-dom/client"
9
+import { startTransition } from "react"
10
11
setupAnalytics()
12
setupSentryClient()
@@ -18,10 +19,12 @@ setupWebVitals()
18
19
})
20
21
loadableReady().then(() => {
- hydrateRoot(
22
- document.getElementById("react-root") as HTMLElement,
23
- <ClientRouter />
24
- )
+ startTransition(() => {
+ hydrateRoot(
+ document.getElementById("react-root") as HTMLElement,
25
+ <ClientRouter />
26
+ )
27
+ })
28
29
})()
30
0 commit comments