Created
November 20, 2015 02:15
-
-
Save weikee94/ecb022f11bbeda36a763 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
| testing 1 |
Author
Author
Interval
useEffect(() => {
const interval = setInterval(() => {
getList(
{
limit: pageState?.pageSize, // 分页获取数量
page: pageState?.pageNum,
},
);
}, 60000);
return () => {
clearInterval(interval);
};
}, [pageState]);
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to reset
Project directory check hooksPath
cat .git/configReset the hooksPath every file inside ".git/hooks/" is either a git-hook or ignored by git. By removing everything inside, you'll get rid of all hooks, and restore the default behavior.
npm uninstall husky && git config --unset core.hooksPath