@@ -41,7 +41,7 @@ const RemoteAppWrapper = forwardRef(function (
41
41
ref ,
42
42
) {
43
43
const RemoteApp = ( ) => {
44
- LoggerInstance . log ( `RemoteAppWrapper RemoteApp props >>>` , { props } ) ;
44
+ LoggerInstance . debug ( `RemoteAppWrapper RemoteApp props >>>` , { props } ) ;
45
45
const {
46
46
moduleName,
47
47
memoryRoute,
@@ -62,7 +62,7 @@ const RemoteAppWrapper = forwardRef(function (
62
62
const renderDom : React . MutableRefObject < HTMLElement | null > = useRef ( null ) ;
63
63
const providerInfoRef = useRef < any > ( null ) ;
64
64
65
- LoggerInstance . log ( `RemoteAppWrapper instance from props >>>` , instance ) ;
65
+ LoggerInstance . debug ( `RemoteAppWrapper instance from props >>>` , instance ) ;
66
66
67
67
useEffect ( ( ) => {
68
68
const renderTimeout = setTimeout ( ( ) => {
@@ -78,12 +78,12 @@ const RemoteAppWrapper = forwardRef(function (
78
78
...resProps ,
79
79
} ;
80
80
renderDom . current = rootRef . current ;
81
- LoggerInstance . log (
81
+ LoggerInstance . debug (
82
82
`createRemoteComponent LazyComponent render >>>` ,
83
83
renderProps ,
84
84
) ;
85
85
86
- LoggerInstance . log (
86
+ LoggerInstance . debug (
87
87
`createRemoteComponent LazyComponent hostInstance >>>` ,
88
88
instance ,
89
89
) ;
@@ -101,7 +101,7 @@ const RemoteAppWrapper = forwardRef(function (
101
101
clearTimeout ( renderTimeout ) ;
102
102
setTimeout ( ( ) => {
103
103
if ( providerInfoRef . current ?. destroy ) {
104
- LoggerInstance . log (
104
+ LoggerInstance . debug (
105
105
`createRemoteComponent LazyComponent destroy >>>` ,
106
106
{ moduleName, basename, dom : renderDom . current } ,
107
107
) ;
@@ -206,7 +206,7 @@ export function withRouterData<
206
206
}
207
207
}
208
208
209
- LoggerInstance . log ( `createRemoteComponent withRouterData >>>` , {
209
+ LoggerInstance . debug ( `createRemoteComponent withRouterData >>>` , {
210
210
...props ,
211
211
basename,
212
212
routerContextVal,
@@ -219,10 +219,13 @@ export function withRouterData<
219
219
220
220
useEffect ( ( ) => {
221
221
if ( pathname !== '' && pathname !== location . pathname ) {
222
- LoggerInstance . log ( `createRemoteComponent dispatchPopstateEnv >>>` , {
223
- name : props . name ,
224
- pathname : location . pathname ,
225
- } ) ;
222
+ LoggerInstance . debug (
223
+ `createRemoteComponent dispatchPopstateEnv >>>` ,
224
+ {
225
+ name : props . name ,
226
+ pathname : location . pathname ,
227
+ } ,
228
+ ) ;
226
229
dispatchPopstateEnv ( ) ;
227
230
}
228
231
setPathname ( location . pathname ) ;
0 commit comments