mirror of
https://github.com/outline/outline.git
synced 2026-11-27 07:58:51 +03:00
The main app scenes were created with bare lazyWithRetry, so the sidebar had no way to warm a route's chunk ahead of navigation — every click paid the full fetch. Move them to createLazyComponent in a leaf module that both the routes and the sidebar can import without a cycle, then preload on the existing hover intent handlers. Document and Collection links already prefetched their data on hover, so the chunk preload rides along on the same event. Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>