[RFC] Warning filter #44551
zombieJ
announced in
RFCs - archive
Replies: 3 comments 6 replies
-
使用静态方法配置? |
Beta Was this translation helpful? Give feedback.
0 replies
-
为啥不直接把 deprecated warning 都从 |
Beta Was this translation helpful? Give feedback.
2 replies
-
interface ConfigProviderProps {
warning: { priority: 'high' | 'low' }
}
<ConfigProvider warning={{ deprecated: false, usage: false, breaking: false }}> |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
📋 RFC
Summary
ConfigProvider provides
warning
prop to disabled part of warning.Basic example
Should only warning for Form.Item should not have multiple children with
name
but not warning Select should useoptions
.Motivation
For development env, some developer upgrade from v4 which may has lots of warning message. It's not easy to find out real error message for breaking change one but mixed with deprecated message.
We can provider the props to enable ConfigProvider disable part of warning message.
Detailed
Inject
_util/warning
to enable warning message level.Drawbacks
Maybe affect user upgrade to next major version.
Adoption strategy
Apply in minor version.
Beta Was this translation helpful? Give feedback.
All reactions