Commit d9201d8
committed
feat(undo-redo): migrate persistence from localStorage to IndexedDB
Replace inline safeStorageAdapter with indexedDBStorage. Workflow undo/
redo persistence moves from localStorage (~5MB origin cap) to IndexedDB
(~GB), eliminating QuotaExceededError that can surface from any small
persisted Zustand store (notification-storage, panel-editor-state,
etc.) once workflow-undo-redo occupies the bulk of the origin's
localStorage budget.
Same pattern as PR #2812 (terminal-console -> IndexedDB) and aligns
with PR #497's policy of minimizing localStorage usage. The earlier
safeStorageAdapter (PR #2079) silently swallowed quota throws in this
store but did not free the origin budget that the other small UI
stores share, leaving them to throw uncaught QuotaExceededError.
Fixes #4737
Signed-off-by: JaeHyung Jang <jaehyung.jang@navercorp.com>1 parent fe854cb commit d9201d8
1 file changed
Lines changed: 2 additions & 36 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | 51 | | |
86 | 52 | | |
87 | 53 | | |
| |||
501 | 467 | | |
502 | 468 | | |
503 | 469 | | |
504 | | - | |
| 470 | + | |
505 | 471 | | |
506 | 472 | | |
507 | 473 | | |
| |||
0 commit comments