Update documentation and refactor useAutoSave hook

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-04-23 09:52:22 +02:00
parent 9c5757eeb0
commit ac44bab8e6
2 changed files with 1 additions and 25 deletions

View File

@@ -74,7 +74,7 @@ export function useAutoSave<T>(
isSavingRef.current = false;
// If a pending save was queued while we were saving, run it now.
if (pendingSaveRef.current as boolean) {
if (pendingSaveRef.current) {
pendingSaveRef.current = false;
await performSave(latestValueRef.current);
}