mirror of
https://github.com/TheRealOwenRees/echecsfrance.git
synced 2026-07-23 04:26:57 +00:00
Sync list to map (#42)
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user