Warnings for manually calling a React.PropTypes validation functions
See original GitHub issueHi,
First I have to say that react-bootstrap-table is fantastic. It is a pleasure to work with. I’m getting a few warning messages when I add New
, Delete
and Search
.
I’m running
react-bootstrap-table@2.5.5
and
├── react@0.14.8
└─┬ react-bootstrap-table@2.5.5
└─┬ react-toastr@2.8.1
└── react@15.3.2
I get the following warning message:
Warning: You are manually calling a React.PropTypes validation function for the **
toastTypeprop on
ToastContainer**. This is deprecated and will not work in the next major version. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.
I get the same warning message for the props below.
**`id` prop on `ToastContainer`
`toastMessageFactory` prop on `ToastContainer`
`preventDuplicates` prop on `ToastContainer`
`newestOnTop` prop on `ToastContainer`
`onClick` prop on `ToastContainer`**
Not sure if it is a version issue or something else.
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Don't Call PropTypes Warning - React
In a future major release of React, the code that implements PropType validation functions will be stripped in production. Once this happens, any...
Read more >manually calling a React.PropTypes validation function - Stack ...
I have looked into the issues on github but there ain't a similar one. How can I correct my app and dismiss the...
Read more >React.PropTypes validation warning · Issue #484 - GitHub
I have react@15.3.1 and react-redux@4.4.5 in my project and got the following warning: warning.js:36 Warning: You are manually calling a React.PropTypes ...
Read more >warning: manually calling a React.PropTypes validation function
Looks like update is needed to start using prop-types instead of React.PropTypes . I receive around 40 warnings or so like the one...
Read more >prop-types - npm
PropTypes until React 16. If you absolutely need to trigger the validation manually, call PropTypes.checkPropTypes() . Unlike the validators ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think this is the same issue as [(https://github.com/tomchentw/react-toastr/issues/75)] which it looks like it hasn’t been fixed yet.
+1