question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Warnings for manually calling a React.PropTypes validation functions

See original GitHub issue

Hi,

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 onToastContainer**. 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:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ghostcommented, Oct 3, 2016

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.

0reactions
stavlevycommented, Feb 20, 2017

+1

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found