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 187e5aa commit 987a92fCopy full SHA for 987a92f
1 file changed
packages/docusaurus/src/client/clientEntry.tsx
@@ -43,12 +43,16 @@ if (ExecutionEnvironment.canUseDOM) {
43
44
const renderApp = () => {
45
if (hydrate) {
46
- ReactDOM.hydrateRoot(container, app, {
47
- onRecoverableError,
+ React.startTransition(() => {
+ ReactDOM.hydrateRoot(container, app, {
48
+ onRecoverableError,
49
+ });
50
});
51
} else {
52
const root = ReactDOM.createRoot(container, {onRecoverableError});
- root.render(app);
53
54
+ root.render(app);
55
56
}
57
};
58
0 commit comments