Files
Tom Moor b72fd33e9c fix(editor): Use lazyWithRetry for shared editor lazy components (#13868)
Moves lazyWithRetry to shared/utils so the editor's ColorSwatch and
Mentions components can use it instead of React.lazy, avoiding the
Suspense reveal throttle once the chunk is loaded.
2026-09-23 20:50:37 -04:00

14 lines
459 B
TypeScript

import lazyWithRetry from "@shared/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;