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

Stop relying on variable hoisting #8380

Merged
merged 1 commit into from
Nov 22, 2016
Merged

Stop relying on variable hoisting #8380

merged 1 commit into from
Nov 22, 2016

Conversation

LinusU
Copy link
Contributor

@LinusU LinusU commented Nov 22, 2016

Only declare the variable once in this scope, instead of declaring them multiple times in the same scope.

This fixes #8318, even though it might technically be a shortcoming in Rollup.

Only declare the variable once in this scope, instead of declaring them multiple times in the same scope.

This fixes facebook#8318, even though it might technically be a shortcoming in Rollup.
@btd
Copy link

btd commented Nov 22, 2016

I beleave it is already fixed. Also it looks you edited generated file.

@gaearon gaearon merged commit 93042c2 into facebook:master Nov 22, 2016
@gaearon
Copy link
Collaborator

gaearon commented Nov 22, 2016

Haha oops indeed.

@gaearon
Copy link
Collaborator

gaearon commented Nov 22, 2016

Reverted. (As @btd noted it's already been fixed before.)

@gaearon gaearon removed this from the 15-next milestone Nov 22, 2016
@LinusU
Copy link
Contributor Author

LinusU commented Nov 22, 2016

Haha, whoops, sorry about that :)

@LinusU LinusU deleted the patch-1 branch November 22, 2016 15:30
@gaearon
Copy link
Collaborator

gaearon commented Nov 22, 2016

No worries, happens to everyone!

@LinusU
Copy link
Contributor Author

LinusU commented Nov 22, 2016

Will this be released in version 15.4.1?

@gaearon
Copy link
Collaborator

gaearon commented Nov 22, 2016

Yea we'll include #8309 which changed it.

@LinusU
Copy link
Contributor Author

LinusU commented Nov 22, 2016

Thank you 💌

acusti pushed a commit to brandcast/react that referenced this pull request Mar 15, 2017
Only declare the variable once in this scope, instead of declaring them multiple times in the same scope.

This fixes facebook#8318, even though it might technically be a shortcoming in Rollup.
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.

getRootIDs is not defined in ReactComponentTreeHook.js
4 participants