-
Notifications
You must be signed in to change notification settings - Fork 48.8k
Add plumbing for onDefaultTransitionIndicator #33150
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
@@ -75,6 +84,11 @@ class Surface extends React.Component { | |||
false, | |||
false, | |||
'', | |||
defaultOnUncaughtError, | |||
defaultOnCaughtError, | |||
defaultOnRecoverableError, |
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.
These were missing in ART so any errors would've logged like onUncaughtError is undefined
instead of the error. Probably not heavily used.
Probably should have a test for errors in ART.
f4a257a
to
022a4b9
Compare
@@ -80,6 +80,7 @@ type CreateRootOptions = { | |||
unstable_transitionCallbacks?: TransitionTracingCallbacks, | |||
onUncaughtError?: (error: mixed, errorInfo: {componentStack: string}) => void, | |||
onCaughtError?: (error: mixed, errorInfo: {componentStack: string}) => void, | |||
onDefaultTransitionIndicator?: () => () => void, |
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.
Should the destroy be optional?
Typically you probably need it but if you use optimistic state then you don’t.
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.
Made it optional
d70d7ac
to
9bf83c2
Compare
Stacked on #33150. We use `noop` functions in a lot of places as place holders. I don't think there's any real optimizations we get from having separate instances. This moves them to use a common instance in `shared/noop`.
Stacked on facebook#33150. We use `noop` functions in a lot of places as place holders. I don't think there's any real optimizations we get from having separate instances. This moves them to use a common instance in `shared/noop`. DiffTrain build for [21fdf30](facebook@21fdf30)
Stacked on facebook#33150. We use `noop` functions in a lot of places as place holders. I don't think there's any real optimizations we get from having separate instances. This moves them to use a common instance in `shared/noop`. DiffTrain build for [21fdf30](facebook@21fdf30)
This just adds the options at the root and wire it up to the root but it doesn't do anything yet.