Skip to content

Remove Stack (part 3, Stack-only DEV code) #10797

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

Merged
merged 1 commit into from
Oct 2, 2017

Conversation

gaearon
Copy link
Collaborator

@gaearon gaearon commented Sep 24, 2017

Removes now-dead ReactComponentTreeHook and ReactHostOperationHook, ReactDebugTool, ReactInstrumentation, ReactPerf, and the calls to host operation hook in DOM utilities.

In Fiber, we never have a debugID, so removes the associated codepaths. Also removes on* methods on hooks since in Fiber we call validateProperties() directly.

Adds empty shims for methods RN still depends on. They are already no-ops, so now we just make this explicit (and add a TODO to remove the dependency). Isn’t it nice to learn this before sync? Yay flat bundles.

The next (and last) step is in #10798.

@gaearon gaearon force-pushed the remove-stack-again-2 branch from 4e8e80e to 7050756 Compare September 29, 2017 14:06
@gaearon gaearon changed the title Remove Stack (part 3, unsafe: Stack-only DEV code) Remove Stack (part 3, Stack-only DEV code) Sep 29, 2017
@reactjs-bot
Copy link

Deploy preview failed.

Built with commit 7050756

https://app.netlify.com/sites/reactjs/deploys/59ce535ddf995316449c3859

@trueadm trueadm self-requested a review October 2, 2017 10:31
Copy link
Contributor

@trueadm trueadm left a comment

Choose a reason for hiding this comment

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

This all looks good to me.

@gaearon gaearon merged commit 745c4ab into facebook:master Oct 2, 2017
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