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 fbjs, fbjs-scripts #6185

Merged
merged 1 commit into from
Mar 6, 2016
Merged

Upgrade fbjs, fbjs-scripts #6185

merged 1 commit into from
Mar 6, 2016

Conversation

zpao
Copy link
Member

@zpao zpao commented Mar 4, 2016

This just makes sure we're on the latest. This does come with a change that needs to be called out - that shallowCompare now treats NaN as the same value, and some other tiny equality related changes. This is because fbjs now uses Object.is to compare values. We talked about this a bit in #5773. The result here is that our "mutated style" warning will have fewer false positives and specifically will no longer warn for the NaN case (thus the updated test).

@@ -198,16 +198,10 @@ describe('ReactDOMComponent', function() {
ReactDOM.render(<span style={style}></span>, div);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Might as well change the test title to skip semi 😄

Copy link
Member Author

Choose a reason for hiding this comment

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

Good call. Want to accept too? :D

@facebook-github-bot
Copy link

@zpao updated the pull request.

@jimfb
Copy link
Contributor

jimfb commented Mar 5, 2016

👍

How did the mutation warning go away?

@zpao
Copy link
Member Author

zpao commented Mar 6, 2016

shallowEqual now uses Object.is to compare values. We use shallowEqual in our style mutation detection.

zpao added a commit that referenced this pull request Mar 6, 2016
@zpao zpao merged commit f430c47 into facebook:master Mar 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants