-
Notifications
You must be signed in to change notification settings - Fork 48.2k
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
[Fizz] Add Owner Stacks when render is aborted #32735
base: main
Are you sure you want to change the base?
Conversation
Comparing: b59f186...8c0c76a 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
c819e57
to
404c603
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
Summary
captureOwnerStack
now returns the corresponding owner stack to the parent stack when we abort a Fizz render.How did you test this change?