()
| 23 | | null = null; |
| 24 | |
| 25 | function Content() { |
| 26 | // Store the current root element in state, along with a callback |
| 27 | // to call once rendering is complete. |
| 28 | let [[root, cb], setRoot] = useState<[ReactElement, (() => void) | null]>([ |
| 29 | use(initialRSCPayload), |
| 30 | null, |
| 31 | ]); |
| 32 | updateRoot = (root, cb) => setRoot([root, cb ?? null]); |
| 33 | useInsertionEffect(() => cb?.()); |
| 34 | return root; |
| 35 | } |
| 36 | |
| 37 | // Hydrate initial page content. |
| 38 | startTransition(() => { |
nothing calls this directly
no test coverage detected