Files
grimoire/src
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-21 12:23:41 +01:00
2026-01-14 19:24:37 +01:00