forked from andyburke/autonomous.contact
feature: reactions
This commit is contained in:
parent
6500d9a9be
commit
b8467ec870
16 changed files with 2603 additions and 383 deletions
7
public/js/debounce.js
Normal file
7
public/js/debounce.js
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
function debounce(fn, delay = 1_000) {
|
||||
let timer = null;
|
||||
return (...args) => {
|
||||
clearTimeout(timer);
|
||||
timer = setTimeout(() => fn(...args), delay);
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue