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-21 17:15:41 +01:00
2026-01-14 14:52:16 +01:00
2026-01-14 19:24:37 +01:00
2026-01-21 12:23:41 +01:00
2026-01-14 17:30:56 +01:00
2026-01-14 18:09:19 +01:00
2026-01-21 13:03:30 +01:00
2026-01-14 14:52:16 +01:00
2026-01-21 13:03:30 +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
2026-01-14 17:30:56 +01:00
2025-12-21 20:12:40 +01:00
2026-01-18 20:05:19 +01:00
2025-12-17 11:44:12 +01:00
2026-01-15 16:13:50 +01:00
2025-12-22 17:00:24 +00:00
2025-12-18 23:32:00 +01:00
2025-12-17 11:44:12 +01:00
2026-01-19 11:41:55 +01:00
2025-12-14 12:00:55 +01:00
2025-12-14 16:32:45 +01:00
2025-12-17 10:26:59 +01:00
2025-12-17 11:44:12 +01:00
2025-12-16 20:50:03 +01:00
2026-01-05 11:42:14 +01:00
2025-12-16 17:28:50 +01:00
2026-01-20 17:28:57 +01:00
2026-01-14 21:04:09 +01:00
2025-12-20 14:25:40 +01:00
2025-12-16 20:50:03 +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-21 20:12:40 +01:00
2025-12-21 18:07:55 +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
2026-01-21 17:15:41 +01:00
2025-12-20 14:25:40 +01:00
2026-01-18 23:19:11 +01:00
2025-12-14 17:11:47 +01:00
2026-01-18 14:49:37 +01:00
2025-12-21 21:50:09 +01:00
2025-12-20 14:25:40 +01:00
2026-01-13 21:41:59 +01:00
2025-12-21 22:18:37 +01:00
2025-12-21 22:47:24 +01:00
2025-12-22 12:38:37 +01:00
2025-12-22 12:38:37 +01:00
2025-12-15 15:42:11 +01:00
2025-12-21 18:08:10 +01:00
2025-12-09 16:26:31 +01:00
2026-01-19 16:25:26 +01:00
2026-01-21 13:03:30 +01:00
2025-12-17 11:44:12 +01:00
2026-01-20 17:24:00 +01:00
2025-12-14 16:32:45 +01:00
2025-12-18 16:49:24 +01:00
2025-12-22 22:41:10 +01:00
2026-01-21 10:15:11 +01:00