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.
2 parents 2561d81 + 98129ab commit 9e2e57cCopy full SHA for 9e2e57c
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