pr_01m47d15m3e54sn21z27rpy5n9/apps/web/app/entry.client.tsx

19 lines548 bytesCodeBlame

Pick any line to see why it is the way it is: the commit, the pull request and issue it came from, and what the agent was thinking.

Fix a hydration mismatch in output that starts with a blank line1import { StrictMode, startTransition } from "react";
2import { hydrateRoot } from "react-dom/client";
3import { HydratedRouter } from "react-router/dom";
4
5startTransition(() => {
6 hydrateRoot(
7 document,
8 <StrictMode>
9 <HydratedRouter />
10 </StrictMode>,
11 {
12 // React recovers from a page the server rendered differently by
13 // rendering it again here; say where, so it can be fixed.
14 onRecoverableError(error, info) {
15 console.error("g1t: recovered from", error, info.componentStack);
16 },
17 },
18 );
19});