Sync list to map (#42)

This commit is contained in:
Timothy Armes
2023-07-05 13:36:12 +02:00
parent 1715b1646b
commit deace43225
8 changed files with 48 additions and 10 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ export default function atomWithDebounce<T>(
);
// exported atom setter to clear timeout if needed
const clearTimeoutAtom = atom(null, (get, set, _arg) => {
const clearTimeoutAtom = atom(null, (get, set) => {
clearTimeout(get(prevTimeoutAtom));
set(isDebouncingAtom, false);
});