PropTypes warning from ColumnDefinition
See original GitHub issueGriddle version
1.8.0 and 1.11.1 tested
Expected Behavior
No warnings
Actual Behavior
Warning: Component ColumnDefinition declared
PropTypes
instead ofpropTypes
. Did you misspell the property assignment?
Steps to reproduce
Create a griddle that uses ColumnDefinition component
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:7 (2 by maintainers)
Top Results From Across the Web
PropTypes of specific component? - Stack Overflow
instanceOf(Column) not work like I expect? How am I supposed to specify that ColumnContainer will only accept children of type Column ?
Read more >Don't Call PropTypes Warning - React
In this case, ThirdPartyPropTypes.deprecated is a wrapper calling PropTypes.bool . This pattern by itself is fine, but triggers a false positive because React ......
Read more >Columns Props · react-bootstrap-table2
colIndex : The index of the current column being processed in BootstrapTable . Return value. A new Object will be the result of...
Read more >react is missing in props validation - You.com | The AI Search ...
propTypes = { column: PropTypes.shape({ title: PropTypes.string }) }; ... aren't using the correct type that we assigned, we will get a console...
Read more >Specify Types of Props With PropTypes - Intermediate React
The PropTypes library allows you to declare the type of props you expect to get from your components and trigger a warning if...
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 Free
Top 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
Hello,
I’m getting this error now:
example code:
Anything that I’m missing? I’m using 1.11.2
I am still getting similar error with 1.13.1 - any idea how to fix it ?
Failed prop type: Invalid prop
customComponent
of typeobject
supplied toColumnDefinition
, expectedfunction
. in ColumnDefinitionwhen i remove the enhancedComponent all works like it should and no further errors are present