Update documentation and refactor useAutoSave hook
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user