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

Include $$typeof on inlined React elements #2352

Merged
merged 2 commits into from Sep 10, 2015
Merged

Conversation

sophiebits
Copy link
Contributor

@sophiebits
Copy link
Contributor Author

Did I do this right? Ideally this could be in a Babel release before the React 0.14 RC that we're planning to push out tomorrow. Sorry for the late notice.

@sebmck
Copy link
Contributor

sebmck commented Sep 10, 2015

All the tests here will need to be updated too. I can push out a new 5.x release just for this if you want. 5.x is feature frozen until Babel 6 but I guess this falls somewhere under the realm of a bug fix.

@@ -0,0 +1 @@
(typeof Symbol === 'function' && Symbol.for && Symbol.for('react.element')) || 0xeac7
Copy link
Contributor

Choose a reason for hiding this comment

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

Double quotes please.

sophiebits added a commit to sophiebits/babel that referenced this pull request Sep 10, 2015
This made debugging babel#2352 confusing
because I had some vim swap files so it didn't load any of the
templates. (I assume this was the original intention.)
@sophiebits
Copy link
Contributor Author

Fixed the quotes and the tests.

@@ -1,6 +1,9 @@
"use strict";

var _typeofReactElement = typeof Symbol === "function" && Symbol["for"] && Symbol["for"]("react.element") || 60103;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Kinda unfortunate that we lose our hex speak here. :) Consider this an enhancement request to preserve hex literals by default?

@sebmarkbage
Copy link

We should make sure that the order is the same for the hidden class.

$$typeof, type, key, ref, props, _owner

@sophiebits
Copy link
Contributor Author

Yeah, okay. Pushed ^ as a separate commit.

sebmck added a commit that referenced this pull request Sep 10, 2015
Include $$typeof on inlined React elements
@sebmck sebmck merged commit ade747e into babel:master Sep 10, 2015
@sebmck
Copy link
Contributor

sebmck commented Sep 10, 2015

Thanks @spicyj!

@sophiebits
Copy link
Contributor Author

Thank you!

@sebmck
Copy link
Contributor

sebmck commented Sep 10, 2015

Released as of 5.8.23

@jmm
Copy link
Member

jmm commented Sep 11, 2015

@sebmck Is that a typo (s/5.8.23/5.8.24/)? Also mentioned here: #2282 (comment)

@sebmck
Copy link
Contributor

sebmck commented Sep 11, 2015

Yeah, whoops.

@jmm
Copy link
Member

jmm commented Sep 11, 2015

@sebmck I was just thinking it might make sense to update that in the comments so people don't get confused, but maybe it's not that important.

@lock lock bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Oct 8, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated A closed issue/PR that is archived due to age. Recommended to make a new issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants