File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
packages/react-native-renderer/src Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ import {
22
22
getPublicRootInstance ,
23
23
defaultOnUncaughtError ,
24
24
defaultOnCaughtError ,
25
- defaultOnRecoverableError ,
26
25
} from 'react-reconciler/src/ReactFiberReconciler' ;
27
26
28
27
import { createPortal as createPortalImpl } from 'react-reconciler/src/ReactPortal' ;
@@ -100,6 +99,10 @@ function nativeOnCaughtError(
100
99
101
100
defaultOnCaughtError ( error , errorInfo ) ;
102
101
}
102
+ function nativeOnRecoverableError ( error : mixed ) : void {
103
+ // eslint-disable-next-line react-internal/no-production-logging, react-internal/warning-args
104
+ console . error ( error ) ;
105
+ }
103
106
104
107
function render (
105
108
element : Element < ElementType > ,
@@ -125,7 +128,7 @@ function render(
125
128
'' ,
126
129
nativeOnUncaughtError ,
127
130
nativeOnCaughtError ,
128
- defaultOnRecoverableError ,
131
+ nativeOnRecoverableError ,
129
132
null ,
130
133
) ;
131
134
roots . set ( containerTag , root ) ;
Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ import {
22
22
getPublicRootInstance ,
23
23
defaultOnUncaughtError ,
24
24
defaultOnCaughtError ,
25
- defaultOnRecoverableError ,
26
25
} from 'react-reconciler/src/ReactFiberReconciler' ;
27
26
// TODO: direct imports like some-package/src/* are bad. Fix me.
28
27
import { getStackByFiberInDevAndProd } from 'react-reconciler/src/ReactFiberComponentStack' ;
@@ -105,6 +104,10 @@ function nativeOnCaughtError(
105
104
106
105
defaultOnCaughtError ( error , errorInfo ) ;
107
106
}
107
+ function nativeOnRecoverableError ( error : mixed ) : void {
108
+ // eslint-disable-next-line react-internal/no-production-logging, react-internal/warning-args
109
+ console . error ( error ) ;
110
+ }
108
111
109
112
function render (
110
113
element : Element < ElementType > ,
@@ -129,7 +132,7 @@ function render(
129
132
'' ,
130
133
nativeOnUncaughtError ,
131
134
nativeOnCaughtError ,
132
- defaultOnRecoverableError ,
135
+ nativeOnRecoverableError ,
133
136
null ,
134
137
) ;
135
138
roots . set ( containerTag , root ) ;
You can’t perform that action at this time.
0 commit comments