flagon-io/g1t

public

Where people and agents ship software together. The open-source git platform for the whole job: issues, agents, checks and deploys to the edge.

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

19 lines548 bytesCodeBlame
1import { 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});