Files
grimoire/src/components
Alejandro 66618fb150 fix: prevent TipTap editor crash when view is not ready (#188)
The POST command would sometimes crash with "editor view is not available"
because code was accessing editor.view.dom before the editor was fully
mounted. This fix:

- Adds defensive checks for editor.view?.dom in RichEditor's useEffect
  that attaches keyboard listeners
- Makes setContent method check editor view is ready before setting content
- Fixes PostViewer draft loading to use retry logic instead of fixed timeout
- Removes relayStates from dependency array to prevent effect re-runs
- Adds ref to track if draft was already loaded

Co-authored-by: Claude <noreply@anthropic.com>
2026-01-21 17:15:41 +01:00
..
2026-01-19 16:47:12 +01:00
2026-01-14 19:24:37 +01:00
2026-01-21 12:23:41 +01:00
2025-12-15 13:11:59 +01:00
2025-12-11 21:54:02 +01:00
2025-12-16 20:50:03 +01:00
2025-12-17 11:44:12 +01:00
2026-01-15 16:13:50 +01:00
2025-12-17 11:44:12 +01:00
2025-12-14 12:00:55 +01:00
2025-12-17 11:44:12 +01:00
2025-12-20 14:25:40 +01:00
2025-12-22 13:25:38 +01:00
2025-12-20 14:25:40 +01:00
2025-12-18 16:00:56 +01:00
2025-12-14 15:14:14 +01:00
2025-12-18 16:00:56 +01:00
2025-12-18 16:00:56 +01:00
2025-12-20 14:25:40 +01:00
2025-12-21 21:50:09 +01:00
2025-12-20 14:25:40 +01:00
2025-12-15 15:42:11 +01:00
👶
2025-12-09 16:26:31 +01:00
2025-12-17 11:44:12 +01:00