Skip to content

Stop relying on variable hoisting - #8380

Merged
gaearon merged 1 commit into
react:masterfrom
LinusU:patch-1
Nov 22, 2016
Merged

gaearon merged 1 commit into
react:masterfrom
LinusU:patch-1

Conversation

@LinusU

@LinusU LinusU commented Nov 22, 2016

Copy link
Copy Markdown
Contributor

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 react#8318, even though it might technically be a shortcoming in Rollup.
@btd

btd commented Nov 22, 2016

Copy link
Copy Markdown

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

@gaearon
gaearon merged commit 93042c2 into react:master Nov 22, 2016
@gaearon

gaearon commented Nov 22, 2016

Copy link
Copy Markdown
Collaborator

Haha oops indeed.

@gaearon

gaearon commented Nov 22, 2016

Copy link
Copy Markdown
Collaborator

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

@gaearon gaearon removed this from the 15-next milestone Nov 22, 2016
@LinusU

LinusU commented Nov 22, 2016

Copy link
Copy Markdown
Contributor Author

Haha, whoops, sorry about that :)

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

gaearon commented Nov 22, 2016

Copy link
Copy Markdown
Collaborator

No worries, happens to everyone!

@LinusU

LinusU commented Nov 22, 2016 •

Copy link
Copy Markdown
Contributor Author

Will this be released in version 15.4.1?

@gaearon

gaearon commented Nov 22, 2016

Copy link
Copy Markdown
Collaborator

Yea we'll include #8309 which changed it.

@LinusU

LinusU commented Nov 22, 2016

Copy link
Copy Markdown
Contributor Author

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 react#8318, even though it might technically be a shortcoming in Rollup.
mrizwanashiq pushed a commit to mrizwanashiq/react that referenced this pull request Jun 25, 2026
Only declare the variable once in this scope, instead of declaring them multiple times in the same scope.

This fixes react#8318, even though it might technically be a shortcoming in Rollup.
hanzo-dev pushed a commit to hanzoai/react that referenced this pull request Sep 9, 2026
Only declare the variable once in this scope, instead of declaring them multiple times in the same scope.

This fixes react#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