File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed
packages/reactant-share/src Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -60,8 +60,7 @@ yarn start
6060
6161---
6262
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 ) .
6564
6665Here is the counter example:
6766
Original file line number Diff line number Diff line change @@ -250,7 +250,10 @@ export class PortDetector {
250250 if ( forceSync ) {
251251 this . syncFullStatePromise = undefined ;
252252 }
253- if ( this . syncFullStatePromise ) return ;
253+ if ( this . syncFullStatePromise ) {
254+ await this . syncFullStatePromise ;
255+ return ;
256+ }
254257 if ( typeof this . transports . client === 'undefined' ) {
255258 throw new Error ( `The current client transport does not exist.` ) ;
256259 }
Original file line number Diff line number Diff line change @@ -52,8 +52,7 @@ class ReactantRouter extends BaseReactantRouter {
5252 if ( ! this . portDetector . sharedAppOptions . forcedSyncClient ) {
5353 const visibilitychange = async ( ) => {
5454 if ( document . visibilityState === 'visible' ) {
55- this . portDetector . syncFullState ( { forceSync : false } ) ;
56- await this . portDetector . syncFullStatePromise ;
55+ await this . portDetector . syncFullState ( { forceSync : false } ) ;
5756 if ( this . toBeRouted ) {
5857 const fn = this . toBeRouted ;
5958 this . toBeRouted = null ;
You can’t perform that action at this time.
0 commit comments