-
-
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
upgrade react-lifecycles-compat #1114
Conversation
@@ -236,8 +236,12 @@ export default class GridExample extends React.PureComponent { | |||
_renderLeftSideCell({columnIndex, key, rowIndex, style}) { | |||
const rowClass = | |||
rowIndex % 2 === 0 | |||
? columnIndex % 2 === 0 ? styles.evenRow : styles.oddRow | |||
: columnIndex % 2 !== 0 ? styles.evenRow : styles.oddRow; | |||
? columnIndex % 2 === 0 |
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.
Why are these changed?
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.
239:32 error Replace `·?·styles.evenRow` with `⏎··········?·styles.evenRow⏎·········` prettier/prettier
240:32 error Replace `·?·styles.evenRow` with `⏎··········?·styles.evenRow⏎·········` prettier/prettier
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.
Because these codes would cause eslint errors so I fixed it 0.0
-->
edit:
It was confirmed that this bug was caused by my local multiple react-lifecycles-compat versions.
So I change this PR's title.
But I'm looking forward this PR could be merged.
I fixed eslint errors and upgraded react-lifecycles-compat to newest version.