chore(react/type_widget): persist data

This commit is contained in:
Elian Doran
2025-09-20 22:22:20 +03:00
parent 02259c55f3
commit 143e6a556c
3 changed files with 52 additions and 16 deletions

View File

@@ -107,7 +107,10 @@ export function useEditorSpacedUpdate({ note, getData, onContentChange, dataSave
}, [ blob ]);
// React to update interval changes.
useEffect(() => spacedUpdate.setUpdateInterval(updateInterval), [ updateInterval ]);
useEffect(() => {
if (!updateInterval) return;
spacedUpdate.setUpdateInterval(updateInterval);
}, [ updateInterval ]);
return spacedUpdate;
}