Test
5ce1431522
fix: prevent infinite render loop when creating notes
...
updateEntry's .map() always returned a new array even when no entry matched,
causing unnecessary state changes. During note creation, addEntry uses
startTransition (deferred) while markContentPending calls updateEntry
synchronously — the entry doesn't exist yet, so the no-op .map() produced a
new reference that cascaded into "Maximum update depth exceeded" (which
surfaced as React error #185 in the production WKWebView build).
The fix makes updateEntry bail out (return prev) when no entry was changed,
preventing the spurious state update. Also removes the defensive try-catch
from the previous fix attempt and cleans up an unnecessary setToastMessage
dependency.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-04-01 10:33:40 +02:00
..
2026-03-30 18:45:45 +02:00
2026-03-31 13:32:55 +02: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-30 18:45:45 +02:00
2026-03-30 18:45:45 +02:00
2026-03-30 18:45:45 +02:00
2026-03-24 17:24:49 +01:00
2026-03-24 17:24:49 +01:00
2026-03-29 10:36:45 +02:00
2026-03-29 10:36:45 +02:00
2026-03-20 19:05:23 +01:00
2026-03-20 19:05:23 +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-18 13:32:07 +01:00
2026-03-31 10:30:44 +02:00
2026-03-24 16:18:05 +01:00
2026-03-29 22:59:54 +02:00
2026-03-19 09:51:06 +01:00
2026-03-19 09:51:06 +01:00
2026-03-29 10:36:45 +02:00
2026-03-29 10:36:45 +02:00
2026-03-03 02:45:42 +01:00
2026-03-03 02:45:42 +01:00
2026-03-24 17:24:49 +01:00
2026-03-24 17:24:49 +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-19 05:34:48 +01:00
2026-03-19 05:34:48 +01:00
2026-03-31 13:51:48 +02:00
2026-03-31 13:32:55 +02:00
2026-03-24 17:24:49 +01:00
2026-03-18 15:42:48 +01:00
2026-03-18 14:29:06 +01:00
2026-03-18 14:29:06 +01:00
2026-03-25 17:51:33 +01:00
2026-03-25 17:51:33 +01:00
2026-03-16 05:06:24 +01:00
2026-02-25 13:31:19 +01:00
2026-03-15 23:40:47 +01:00
2026-03-15 23:40:47 +01:00
2026-03-24 17:24:49 +01:00
2026-03-24 17:24:49 +01:00
2026-03-30 18:45:45 +02:00
2026-03-30 18:45:45 +02: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-29 15:05:56 +02:00
2026-03-24 17:24:49 +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-31 13:32:55 +02:00
2026-03-24 17:24:49 +01:00
2026-03-24 17:24:49 +01:00
2026-04-01 10:33:40 +02:00
2026-03-03 12:18:40 +01:00
2026-03-09 13:28:46 +01:00
2026-03-18 01:56:33 +01:00
2026-03-16 18:31:33 +01:00
2026-03-18 01:56:33 +01:00
2026-03-17 22:42:55 +01:00
2026-03-03 00:59:09 +01:00
2026-03-03 00:59:09 +01:00
2026-03-27 16:20:31 +01:00
2026-03-17 11:41:35 +01:00
2026-03-17 11:41:35 +01:00
2026-02-23 19:53:36 +01:00
2026-03-08 16:52:08 +01:00
2026-03-29 15:05:56 +02:00
2026-03-29 15:05:56 +02:00
2026-03-24 17:24:49 +01:00
2026-03-24 17:24:49 +01:00
2026-03-29 15:05:56 +02:00
2026-03-25 16:20:09 +01:00
2026-02-16 08:04:06 +01:00
2026-03-24 16:18:05 +01:00
2026-03-25 17:51:33 +01:00
2026-03-25 17:51:33 +01:00
2026-03-29 10:36:45 +02:00
2026-03-29 10:36:45 +02:00
2026-03-23 21:07:38 +01:00
2026-04-01 10:33:40 +02:00
2026-04-01 10:33:40 +02:00
2026-03-25 23:34:52 +01:00
2026-03-17 13:14:56 +01:00
2026-03-17 11:41:35 +01:00
2026-03-30 18:30:38 +02:00
2026-03-17 11:41:35 +01:00
2026-03-08 14:54:50 +01:00