Skip to content

Upgrade fbjs, fbjs-scripts#6185

Merged
zpao merged 1 commit intofacebook:masterfrom
zpao:fbjs-upgrade
Mar 6, 2016
Merged

Upgrade fbjs, fbjs-scripts#6185
zpao merged 1 commit intofacebook:masterfrom
zpao:fbjs-upgrade

Conversation

@zpao
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

@zpao updated the pull request.

@jimfb
Copy link
Copy Markdown
Contributor

jimfb commented Mar 5, 2016

👍

How did the mutation warning go away?

@zpao
Copy link
Copy Markdown
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