-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
feat: Migrating Grid.js to getDerivedStateFromProps #1053
Conversation
@azmenak there is currently 1 test is failing that I will be taking another look at this weekend. Hopefully soon! |
source/Grid/Grid.js
Outdated
} | ||
|
||
// Update scroll offsets if the size or number of cells have changed, invalidating the previous value | ||
// Update getters. this is a little hacky | ||
// TODO: move the configure? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about this todo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed! :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests pass on 16.2 and 16.3
I don't have time/energy to do a super in-depth code at the moment, but at a glance this looks reasonable and since tests pass- let's roll with it.
follow up to #1009
especially need eyes on these parts:
https://github.com/bvaughn/react-virtualized/pull/1053/files#diff-43c6f2c20a98e4816031a2f99092ecb4R791
https://github.com/bvaughn/react-virtualized/pull/1053/files#diff-868d04d08bdf53ce86a26e3f8a99bccdR2316
cc @bvaughn