We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In the useAutosave.tsx, when evaluating if onSave will be called, if the value is falsy (empty string, 0), onSave is not called.
useAutosave.tsx
onSave
if (initialRender.current) { initialRender.current = false; } else if (debouncedValueToSave) { onSave(debouncedValueToSave); }
You should remove this check.
P.S. thanks for this great hook!
The text was updated successfully, but these errors were encountered:
This is great, thank you! I'll let you know when it's patched 🙇🏼
Sorry, something went wrong.
closed by #14
Patched in 0.4.0 🎉
No branches or pull requests
In the
useAutosave.tsx
, when evaluating if onSave will be called, if the value is falsy (empty string, 0),onSave
is not called.You should remove this check.
P.S. thanks for this great hook!
The text was updated successfully, but these errors were encountered: