-
Notifications
You must be signed in to change notification settings - Fork 46.9k
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
Remove obsolete name
property from client reference in Flight Node Register
#26322
Conversation
Comparing: eb616a1...96b9eef Critical size changesIncludes critical production bundles, as well as any change greater than 2%:
Significant size changesIncludes any change greater than 0.2%: Expand to show
|
ce9aad7
to
3e1ebc7
Compare
This is a leftover from facebook#26300 where `name` was incorporated into `$$id`.
3e1ebc7
to
96b9eef
Compare
@@ -95,8 +97,6 @@ module.exports = function register() { | |||
return target.$$id; | |||
case '$$async': | |||
return target.$$async; | |||
case 'name': | |||
return target.name; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This case was not covered by a unit test, but I think it's dead code and can not be reached.
@@ -185,7 +185,6 @@ module.exports = function register() { | |||
); | |||
}: any), | |||
{ | |||
name: {value: name}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this was left in intentionally for convenience (i.e. reading it in deepProxyHandlers
), feel free to just close the PR. But including the name
here, but not in all the other branches, felt inconsistent and confusing to me.
This was intentionally left as a debug value for when the function is printed. |
Summary
This is a leftover from #26300 where
name
was incorporated into$$id
.How did you test this change?
yarn test
andyarn test --prod