pomodoro
pomodoro copied to clipboard
A web pomodoro timer.
Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 18.2.21 to 18.2.41. Commits See full diff in compare view [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...
Bumps [eslint](https://github.com/eslint/eslint) from 8.48.0 to 8.55.0. Release notes Sourced from eslint's releases. v8.55.0 Features 8c9e6c1 feat: importNamePattern option in no-restricted-imports (#17721) (Tanuj Kanti) Documentation 83ece2a docs: fix typo --rules ->...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.5.9 to 20.10.3. Commits See full diff in compare view [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...
Bumps [eslint-config-next](https://github.com/vercel/next.js/tree/HEAD/packages/eslint-config-next) from 13.4.19 to 14.0.3. Release notes Sourced from eslint-config-next's releases. v14.0.3 Core Changes Update React from 746890329 to 0e352ea01: #58279 fix(turbopack): support middleware in src: #58218 Update font...
Bumps [next](https://github.com/vercel/next.js) from 13.4.19 to 14.0.3. Release notes Sourced from next's releases. v14.0.3 Core Changes Update React from 746890329 to 0e352ea01: #58279 fix(turbopack): support middleware in src: #58218 Update font...
## 现象 TODO页面使用回车键创建任务时会创建多个(实际上为该任务的字符串长度个) ## 原因 & 解决 AddLine组件中的input的onChange引起重新渲染, onAdd监听的value发生变化, 导致useEffect中的inputRef**不停**添加监听函数, _addEventListenter会不停在该ref上注册事件, value变化多少次, 就添加了多少个监听事件_, 见[DOM0和DOM2事件绑定的区别](https://blog.csdn.net/weixin_30647065/article/details/95502276?spm=1001.2101.3001.6650.11&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-11-95502276-blog-80572184.235%5Ev38%5Epc_relevant_anti_t3&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-11-95502276-blog-80572184.235%5Ev38%5Epc_relevant_anti_t3&utm_relevant_index=12)