请教下add()为什么要防止notice重复加入notices队列中
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 15/100
- Issue 类型
- 文档
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- react, typescript
- 领域
- frontend
调研方向
首先阅读 issue 中引用的 add()、getUuid()、notices queue 和 maxCount 处理的实现。跟踪何时提供 notice key、何时生成该 key,然后记录防止重复的理由以及 queue 的行为,使这个问题得到明确的回答。
由索引模型根据 Issue 内容生成。
描述
const key = notice.key = notice.key || getUuid();
假如 key = getUuid()这不是可以一直不重复吗?这样做的意义什么呢?,
就算有maxCount 的限制也只需要删掉最前面的一个就可以了,这样做的目的是为了什么,性能问题么?
小白请教下
- 主要语言
- TypeScript
- 星标
- 384
- 派生
- 121
- 平均合并
- 1 小时 31 分钟
- 30 天内合并 PR
- 4
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
react-component/notification 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 45/100
react-component/notification#382 ·
-
难度 3/5 1-2 天 新手友好度 25/100
react-component/notification#356 · 2 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 42/100
react-component/notification#333 ·
-
难度 3/5 1-2 天 新手友好度 25/100
react-component/notification#307 ·
-
难度 3/5 1-2 天 新手友好度 48/100
react-component/notification#305 ·
查看 react-component/notification 的全部 Issue
相似的 Issue
-
perf(core): getComments() runs the approved count and the comment list as two sequential queries未关闭area/core bot:bug bot:working
难度 2/5 1-3 小时 新手友好度 76/100
emdash-cms/emdash#3905 · 2 条评论 ·
维护者通常 1 天内回复
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
难度 1/5 1 小时以内 新手友好度 90/100
lingdojo/kana-dojo#31728 · 1 条评论 · 5 个 reaction ·
维护者通常 1 天内回复
-
selective-claw: freshTailTurns=0 keeps ALL turns verbatim and summarizes none (slice(-0) === slice(0))可能已有人在做 @zjncs 今天认领。 未关闭component:tokenless
难度 2/5 1-3 小时 新手友好度 80/100
agentic-os-org/ANOLISA#6112 · 1 条评论 ·
维护者通常 1 天内回复
-
bug needs triage
难度 2/5 1-3 小时 新手友好度 75/100
rjsf-team/react-jsonschema-form#5439 ·
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复