Files
outline/app/components/AsyncEditor.ts
T
Tom Moor ad04aed6ef fix: Editor content delayed by React 19 Suspense reveal throttle (#13817)
Lazy components now render synchronously once their chunk is loaded and share a
preload promise, so the editor no longer commits a fallback and waits out the
300ms retry throttle. Editor chunks are preloaded from the document route, the
sidebar hover, and the data loader. A lint rule blocks direct imports of the
editor chunk.
2026-09-20 16:54:56 -04:00

14 lines
453 B
TypeScript

import lazyWithRetry from "~/utils/lazyWithRetry";
/**
* The editor core is the largest chunk in the app and is kept out of the
* initial bundle. This module stays light so routes can preload the chunk
* without pulling editor dependencies into their own chunk.
*/
const AsyncEditor = lazyWithRetry(
// oxlint-disable-next-line no-restricted-imports -- the one place the chunk is loaded
() => import("~/editor")
);
export default AsyncEditor;