lucaronin
ac035e483e
fix: prevent crash when creating note from relationship input
...
Root cause: handleCreateNoteForRelationship used `await persistNewNote()`
which forced an early React flush. The subsequent frontmatter update
(onAdd/onAddProperty) triggered setTabs in a microtask that collided with
the render batch, causing a radix-ui infinite setState loop
("Maximum update depth exceeded") and a blank white screen.
Two fixes applied:
1. Make handleCreateNoteForRelationship synchronous (fire-and-forget
persistence) to keep all state updates batched — mirrors the working
handleCreateNoteImmediate pattern.
2. Defer onAdd/onAddProperty via setTimeout(0) so the frontmatter update
runs after the tab-switch render completes, avoiding the radix-ui
ref composition loop.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-03-16 02:23:45 +01:00
..
2026-02-22 12:02:19 +01:00
2026-02-22 10:11:52 +01:00
2026-03-04 10:05:43 +01:00
2026-03-04 10:05:43 +01:00
2026-03-09 10:21:49 +01:00
2026-03-09 10:21:49 +01:00
2026-03-09 10:21:49 +01:00
2026-03-09 10:21:49 +01:00
2026-03-12 00:54:48 +01:00
2026-03-12 00:54:48 +01:00
2026-03-12 00:54:48 +01:00
2026-03-12 07:24:46 +01:00
2026-03-12 07:24:46 +01:00
2026-03-07 01:14:12 +01:00
2026-03-07 01:14:12 +01:00
2026-03-02 01:50:41 +01:00
2026-03-02 01:50:41 +01:00
2026-03-12 03:19:32 +01:00
2026-03-12 03:19:32 +01:00
2026-03-12 00:54:48 +01:00
2026-03-12 00:54:48 +01:00
2026-03-09 10:43:46 +01:00
2026-03-09 10:43:46 +01:00
2026-03-09 00:52:56 +01:00
2026-03-12 00:33:44 +01:00
2026-02-23 23:08:09 +01:00
2026-02-24 12:46:19 +01:00
2026-03-03 02:45:42 +01:00
2026-03-03 02:45:42 +01:00
2026-03-12 06:28:19 +01:00
2026-03-12 06:28:19 +01:00
2026-03-03 02:45:42 +01:00
2026-02-27 15:27:25 +01:00
2026-02-27 15:27:25 +01:00
2026-02-25 21:43:16 +01:00
2026-03-02 21:27:26 +01:00
2026-03-02 21:27:26 +01:00
2026-03-08 15:07:45 +01:00
2026-03-11 16:31:03 +01:00
2026-03-12 03:01:39 +01:00
2026-03-11 22:38:25 +01:00
2026-03-11 22:14:20 +01:00
2026-03-11 22:14:20 +01:00
2026-03-09 13:28:46 +01:00
2026-03-09 13:28:46 +01:00
2026-02-25 13:31:19 +01:00
2026-02-28 10:59:05 +01:00
2026-02-28 12:43:18 +01:00
2026-03-15 23:40:47 +01:00
2026-03-15 23:40:47 +01:00
2026-03-07 01:14:12 +01:00
2026-03-07 01:14:12 +01:00
2026-03-08 23:53:00 +01:00
2026-03-08 23:53:00 +01:00
2026-03-13 07:11:31 +01:00
2026-02-22 14:10:42 +01:00
2026-03-07 11:33:18 +01:00
2026-03-07 11:33:18 +01:00
2026-03-12 00:54:48 +01:00
2026-03-12 00:54:48 +01:00
2026-02-27 16:53:18 +01:00
2026-03-03 07:10:34 +01:00
2026-03-02 11:00:41 +01:00
2026-02-25 18:39:12 +00:00
2026-03-15 23:40:47 +01:00
2026-03-16 02:23:45 +01:00
2026-03-03 12:18:40 +01:00
2026-03-09 13:28:46 +01:00
2026-03-09 12:42:56 +01:00
2026-03-09 12:42:56 +01:00
2026-03-03 00:59:09 +01:00
2026-03-03 00:59:09 +01:00
2026-03-09 00:33:57 +01:00
2026-03-11 22:14:20 +01:00
2026-03-11 22:14:20 +01:00
2026-02-23 19:53:36 +01:00
2026-03-08 16:52:08 +01:00
2026-02-26 00:55:16 +00:00
2026-02-26 00:55:16 +00:00
2026-03-12 00:54:23 +01:00
2026-03-12 00:54:48 +01:00
2026-02-16 08:04:06 +01:00
2026-03-16 01:24:31 +01:00
2026-03-16 01:24:31 +01:00
2026-03-05 15:26:21 +01:00
2026-03-02 23:53:37 +01:00
2026-03-02 23:53:37 +01:00
2026-03-05 15:26:21 +01:00
2026-03-08 23:53:00 +01:00
2026-03-09 13:28:46 +01:00
2026-03-03 02:36:33 +01:00
2026-03-03 02:36:33 +01:00
2026-03-06 21:41:00 +01:00
2026-03-05 15:26:21 +01:00
2026-03-08 14:54:50 +01:00
2026-03-08 14:54:50 +01:00