fix: users infinity scroll refreshing all page

This commit is contained in:
canove
2020-09-29 06:49:52 -03:00
parent d78df2bf2e
commit 86dfe3e427
3 changed files with 29 additions and 82 deletions

View File

@@ -121,7 +121,7 @@ const Contacts = () => {
}
};
fetchContacts();
}, 500);
}, 5000);
return () => clearTimeout(delayDebounceFn);
}, [searchParam, pageNumber]);