-
Notifications
You must be signed in to change notification settings - Fork 48.8k
[Fizz] Add Owner Stacks when render is aborted #32735
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
Conversation
Comparing: 526dd34...1fa57c6 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
|
0114c88
to
c819e57
Compare
404c603
to
8c0c76a
Compare
@@ -311,6 +311,7 @@ function render(children: React$Element<any>, options?: Options): Destination { | |||
children, | |||
null, | |||
null, | |||
null, |
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.
Otherwise the optional on*
callbacks were not lined up correctly.
'\n in Component (at **)' + '\n in App (at **)', | ||
); | ||
expect(normalizeCodeLocInfo(ownerStack)).toEqual( | ||
__DEV__ ? '\n in App (at **)' : null, |
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.
Ideally, the stack would start at Component
8c0c76a
to
1fa57c6
Compare
DiffTrain build for [4a1f290](facebook@4a1f290)
DiffTrain build for [4a1f290](facebook@4a1f290)
Summary
captureOwnerStack
now returns the corresponding owner stack to the parent stack when we abort a Fizz render.How did you test this change?