Comments (5)
@zombieJ 我忘了我们为啥不用 https://github.com/BerkeleyTrue/warning 了
from util.
@zombieJ 我忘了我们为啥不用 https://github.com/BerkeleyTrue/warning 了
最早是 antd 里自行实现了 warning,目的是只 warning 用户一次。然后 #47 抽成了通用 util,这样在 rc 里也可以用。
from util.
直接 PR 吧
from util.
能不能用console.warn,有些不兼容写法一时半会改不了,console面板里又有会抛错,太影响开发了。逼得我只能通过alias将warning的路径指向本地的文件,改写里面的代码。
from util.
同意楼上,我也觉得Antd
里应该改一下 console 等级,同时增加 rc-util/src/warning 中的 note
函数来警告
对于不影响项目运行(比如有些 api 已经提示废弃其实仍然可以使用)的使用 console.warn; 对于已经废弃且使用后没有效果的 api 使用 console.error 来提示。
from util.
Related Issues (20)
- shadow dom Failed to execute 'appendChild' on 'Node': This node type does not support this method.
- 安装npm包失败,提示无"@babel/runtime": "^7.18.3"这个版本 HOT 1
- 打开Modal,mask蒙层样式修改了页面宽度
- IE11浏览器不兼容导致报错 syncRealContainer 中使用的contains
- [utils] Please make component "warnings" actually warnings HOT 2
- >=v5.13.0下在低版本火狐浏览器下getTargetScrollBarSize方法报错 HOT 1
- Uncaught TypeError: dispatcher.useId is not a function
- Uncaught TypeError: _interopRequireDefault is not a function at ../../../node_modules/rc-util/lib/hooks/useMergedState.js
- csp nonce configuration doesn't seem to work
- v5.25.0 对 useMergedState 的重构, 导致[email protected]重复render, 页面卡死
- about useMergedState issue
- [RFC] tsconfig 是否应该开启 strict 或 strictNullChecks HOT 1
- useMobile hooks in version v5.28.0
- isVisible failing with element from a different window
- Calling utils.merge that have the same object does not work HOT 1
- switchScrollingEffect.js 的代码是否存在问题?
- Function isDom not working inside iframe HOT 1
- vite/[email protected]: error message occurred does not provide an export named 'isFragment' HOT 2
- function inShadow throws error when shadowRoot is undefined HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from util.