Unable to close notification since on release v4.5.0
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 38/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- react, typescript
- 领域
- frontend
调研方向
首先跟踪 rc-notification 模块中的 removeNotice 入口点和 notices 数组,然后继续查看 React 状态如何渲染到 UI 中。确认当关闭图标调用 removeNotice 时,移除一个有效 key 会使相应的通知消失。
由索引模型根据 Issue 内容生成。
描述
Our component library has been using rc-notification, and closing the notification started to not work since release v4.5.0. To be more specific, removeNotice method gets called, and I see that the notices array in the React state of rc-notification module removes the correct item. However, the state change does not get reflected in the UI, and the notification does not disappear from the screen.
Expected behavior:
- Invoking "removeNotice" method with valid key correctly removes the notification from the UI
Current behavior:
- Clicking on the close icon that calls "removeNotice" method removes the notice in the state correctly, but the notification does not disappear from the UI
- 主要语言
- 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
-
难度 2/5 1-3 小时 新手友好度 85/100
umbraco/Umbraco-CMS-MCP-Dev#512 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
wimpysworld/sidra#290 ·
维护者通常 1 天内回复
-
defuFn invokes function values for inherited default properties可能已有人在做 @xiehuanyi 今天认领。 未关闭
难度 1/5 1 小时以内 新手友好度 85/100
-
feature request good first issue
难度 2/5 1-3 小时 新手友好度 85/100
TabularisDB/tabularis#853 ·
维护者通常 1 天内回复
-
难度 2/5 1 小时以内 新手友好度 85/100
capricorn86/happy-dom#2474 ·
维护者通常 2 天内回复