notification
notification copied to clipboard
React Notification
close https://github.com/ant-design/ant-design/issues/48125
想了解实现原理
feat:https://github.com/ant-design/ant-design/issues/45155
### rc-notification v5.0.5 ### 1、多个页面都需要通知,每一处地方都需要添加`contextHolder`,很是麻烦,且不知是否有冲突。 ### 2、有一些弹窗也需要通知,通知的同时需要关闭弹窗,一旦弹窗关闭了,通知也直接不见了。 因以上2点问题,我想问下有没有办法在根页面添加一次`contextHolder`后,其他页面直接调用通知就可以了?
- 配置maxCount为1; - 编写轮序每秒调用一次message; - 当前页面message执行正确,每次仅存在一个message; - 切换浏览器标签页面,等待5+秒; - 返回浏览器标签页面,message存在5+个。 代码在路径/rc-notification/es/Notification.js line56 如果是切换浏览器标签页面的话,我认为此时notices的值并不可靠。
fixes #299
Bumps [father](https://github.com/umijs/father) from 2.30.23 to 4.1.6. Commits 4563346 build: release 4.1.6 49cd3a0 fix: dist lost if multi-entry umd used in dev command (#590) 4586693 refactor: allow advanced externals usage for...
Bumps [eslint](https://github.com/eslint/eslint) from 7.32.0 to 8.35.0. Release notes Sourced from eslint's releases. v8.35.0 Features 8e34a04 feat: add afterHashbangComment option to lines-around-comment rule (#16920) (SUZUKI Sosuke) c8c0c71 feat: Move all and...
Bumps [@testing-library/react](https://github.com/testing-library/react-testing-library) from 13.4.0 to 14.0.0. Release notes Sourced from @testing-library/react's releases. v14.0.0 14.0.0 (2023-02-16) Bug Fixes Prevent "missing act" warning for queued microtasks (#1137) (f78839b) Features Bump @testing-library/dom to...