Skip to content
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

Merged
merged 4 commits into from
May 18, 2018
Merged

Conversation

soda-x
Copy link
Contributor

@soda-x soda-x commented May 17, 2018

(0, _reactLifecyclesCompat2.default)(Grid);

-->

_reactLifecyclesCompat2.default is not a function

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.

@soda-x soda-x changed the title bugfix: fix react-lifecycles-compat usage upgrade react-lifecycles-compat May 18, 2018
@@ -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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are these changed?

Copy link
Contributor Author

@soda-x soda-x May 18, 2018

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

Copy link
Contributor Author

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

@wuweiweiwu wuweiweiwu merged commit 713fcc8 into bvaughn:master May 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants