File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
packages/reactant-share/src Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -54,9 +54,9 @@ class ReactantRouter extends BaseReactantRouter {
54
54
if ( document . visibilityState === 'visible' ) {
55
55
this . portDetector . syncFullState ( { forceSync : false } ) ;
56
56
await this . portDetector . syncFullStatePromise ;
57
- if ( this . _toBeRouted ) {
58
- const fn = this . _toBeRouted ;
59
- this . _toBeRouted = null ;
57
+ if ( this . toBeRouted ) {
58
+ const fn = this . toBeRouted ;
59
+ this . toBeRouted = null ;
60
60
fn ( ) ;
61
61
}
62
62
}
@@ -177,7 +177,7 @@ class ReactantRouter extends BaseReactantRouter {
177
177
}
178
178
} ;
179
179
if ( this . portDetector . disableSyncClient ) {
180
- this . _toBeRouted = route ;
180
+ this . toBeRouted = route ;
181
181
} else {
182
182
route ( ) ;
183
183
}
@@ -202,14 +202,14 @@ class ReactantRouter extends BaseReactantRouter {
202
202
}
203
203
} ;
204
204
if ( this . portDetector . disableSyncClient ) {
205
- this . _toBeRouted = route ;
205
+ this . toBeRouted = route ;
206
206
} else {
207
207
route ( ) ;
208
208
}
209
209
} ) ;
210
210
}
211
211
212
- protected _toBeRouted : ( ( ) => void ) | null = null ;
212
+ toBeRouted : ( ( ) => void ) | null = null ;
213
213
214
214
@state
215
215
protected _routers : Record < string , RouterState | undefined > = {
You can’t perform that action at this time.
0 commit comments