File tree 3 files changed +6
-5
lines changed
packages/reactant-share/src 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -60,8 +60,7 @@ yarn start
60
60
61
61
---
62
62
63
- Reactant is very easy to get Started.
64
- You can try Reactant by visiting the [ online project] ( https://stackblitz.com/edit/reactant-ts ) .
63
+ Reactant is very easy to get started. You can try Reactant by visiting the [ online demo] ( https://stackblitz.com/edit/reactant-ts ) .
65
64
66
65
Here is the counter example:
67
66
Original file line number Diff line number Diff line change @@ -250,7 +250,10 @@ export class PortDetector {
250
250
if ( forceSync ) {
251
251
this . syncFullStatePromise = undefined ;
252
252
}
253
- if ( this . syncFullStatePromise ) return ;
253
+ if ( this . syncFullStatePromise ) {
254
+ await this . syncFullStatePromise ;
255
+ return ;
256
+ }
254
257
if ( typeof this . transports . client === 'undefined' ) {
255
258
throw new Error ( `The current client transport does not exist.` ) ;
256
259
}
Original file line number Diff line number Diff line change @@ -52,8 +52,7 @@ class ReactantRouter extends BaseReactantRouter {
52
52
if ( ! this . portDetector . sharedAppOptions . forcedSyncClient ) {
53
53
const visibilitychange = async ( ) => {
54
54
if ( document . visibilityState === 'visible' ) {
55
- this . portDetector . syncFullState ( { forceSync : false } ) ;
56
- await this . portDetector . syncFullStatePromise ;
55
+ await this . portDetector . syncFullState ( { forceSync : false } ) ;
57
56
if ( this . toBeRouted ) {
58
57
const fn = this . toBeRouted ;
59
58
this . toBeRouted = null ;
You can’t perform that action at this time.
0 commit comments