Last active
October 27, 2021 06:05
-
-
Save lotharschulz/df6f08e6d602092dcacb263994d2244f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// please see also the accompanying blog post | |
// https://www.lotharschulz.info/2021/10/14/how-to-create-a-react-frontend-to-debounce-text-input-persistence-in-firebase-firestore/ | |
const saveFieldValueDebounced = AwesomeDebouncePromise( | |
saveFieldValue, | |
debounceDelay, | |
{ key: fieldId => fieldId }, | |
); | |
const saveFieldValue = (fieldId: number, fieldValue: string) => saveToDB(fieldValue); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment