Files
outline/app/components
Tom MoorandClaude Opus 4.6 c02ac30eb0 refactor: Convert Document scene to functional component (#12033)
* refactor: Convert Document scene from class to functional component

Replace the @observer class component with a functional component using
hooks (useStores, useTranslation, useHistory, useLocation) instead of
HOC wrappers (withStores, withTranslation, withRouter). All @observable
state converted to useState with companion refs for stale closure
avoidance in debounced callbacks and unmount cleanup.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* refactor: Extract save/dirty tracking into useDocumentSave hook

Moves all save, autosave, dirty-tracking, template insertion, and
unmount cleanup logic from DocumentScene into a dedicated hook. This
reduces the component from ~790 to ~500 lines and isolates re-renders
from save state changes (isSaving, isPublishing, etc.) to a smaller
surface.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* docs: Add JSDoc to DocumentScene Props and function

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* unused

* Remove withStores

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-18 11:33:59 -04:00
..
2026-04-15 21:26:43 -04:00
2025-12-23 11:53:41 -05:00
2026-04-03 19:50:50 -04:00
2026-03-08 18:26:42 -04:00
2023-02-25 12:03:05 -08:00
2026-04-03 19:50:50 -04:00
2026-02-20 18:53:00 -05:00
2024-11-02 10:58:03 -07:00
2025-03-15 15:06:12 -07:00
2026-03-08 18:26:42 -04:00
tsc
2024-01-06 11:59:01 -05:00
2026-04-17 23:22:50 -04:00
2023-09-23 14:31:55 -04:00
2026-02-14 21:44:45 +00:00
2026-03-02 07:06:39 -05:00
2026-02-20 18:53:00 -05:00
2025-11-01 10:25:38 -04:00
2026-03-08 18:26:42 -04:00