Code Monkey home page Code Monkey logo

Comments (5)

afc163 avatar afc163 commented on August 13, 2024 1

@zombieJ 我忘了我们为啥不用 https://github.com/BerkeleyTrue/warning

from util.

zombieJ avatar zombieJ commented on August 13, 2024 1

@zombieJ 我忘了我们为啥不用 https://github.com/BerkeleyTrue/warning

最早是 antd 里自行实现了 warning,目的是只 warning 用户一次。然后 #47 抽成了通用 util,这样在 rc 里也可以用。

from util.

zombieJ avatar zombieJ commented on August 13, 2024

直接 PR 吧

from util.

semdy avatar semdy commented on August 13, 2024

能不能用console.warn,有些不兼容写法一时半会改不了,console面板里又有会抛错,太影响开发了。逼得我只能通过alias将warning的路径指向本地的文件,改写里面的代码。

from util.

KAROTT7 avatar KAROTT7 commented on August 13, 2024

同意楼上,我也觉得Antd里应该改一下 console 等级,同时增加 rc-util/src/warning 中的 note 函数来警告
对于不影响项目运行(比如有些 api 已经提示废弃其实仍然可以使用)的使用 console.warn; 对于已经废弃且使用后没有效果的 api 使用 console.error 来提示。

from util.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.