-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecation warnings on default props #1403
Comments
Same messages here! |
+1 |
1 similar comment
+1 |
+1 in @bentley/ui-components |
+1 using 5.03 |
+1 using latest |
+1 using
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please reopen this if you feel it has been incorrectly closed and we will do our best to look into it. Thank you for your contributions. |
hay stale bot "react-data-grid": "^6.1.0-0", still has this issue. PR is seems like ready to fix it though. |
looks like they're actively working on a new major release which i'm sure will include this PR -> https://github.com/adazzle/react-data-grid/commits/next doubt they will include this as part of a minor release before then but I could be wrong |
+1 using 6.1.0 |
+1 using
|
Awesome that y'all are sorting out console warnings (^^,) Workaround:
The warning @ElmarFrerichs mentions : |
Same workaround clears the other undefined caused by rowScrollTimeout as @ElmarFrerichs suspected
Edit to include version info:
Still a valid workaround for suppressing deprecated prop warnings. |
yup still happening by default at
@m1tttt4 solution will break current types definitions with \
|
Resolved in version 7.0.0-alpha.18, I'll reopen it if it happens again. |
Which version of React JS are you using?
✅ Officially supported ✅
☣️ Not officially supported, expect warnings and errors ☣️
Which browser are you using?
✅ Officially supported ✅
I'm submitting a ...
Issue Details
Since at least version 5.0.3 of react-data-grid, I get deprecation warnings for every use of the ReactDataGrid for using the deprecated
enableRowSelect
androwScrollTimeout
props, without me ever using them. I think it was caused by #1254.Call in my code:
Two warnings show up in my console:
Other deprecated props like
onRowUpdated
don't show a warning, so I suspect it's got something to do with the defaultProps ofenableRowSelect
androwScrollTimeout
. The package react-is-deprecated has a closed issue on this, the defaultProps are passed through the propTypes as well so the deprecationWarning will trigger.The warning message for rowScrollTimeout only has
undefined
as text because it's propType definition is missing thedeprecationWarning()
call, but that's another story.react-data-grid/packages/react-data-grid/src/ReactDataGrid.js
Line 132 in 283a83c
I didn't digg deep enough into react-data-grid yet to see if just removing the 2 defaultProps will cause any side effects, in my case it worked.
Thanks!
PS: Is React 15.4 still the only officially supported version?
The text was updated successfully, but these errors were encountered: