import { AppStore as BaseAppStore , observable , state } from '@goldfishjs/reactive-connect' ; /**
 * State management for App.
 */ @ observable export default class AppStore extends BaseAppStore { protected stopWatchFeedbackQueue : ( ( ) => void ) | undefined ; type { * } memberof @ state public globalErrorInPromise : any = null ; /**
     * Wait for the init data finish loading.
     */ public waitForInitDataReady ( ) { return new Promise ( resolve => { const stop = this . watch ( ( ) => this . isInitLoading , newVal => { if ( ! newVal ) { resolve ( ) ; stop ( ) ; } } , { immediate : true , } ) ; } ) ; } lifecycle public destroy ( ) { super . destroy ( ) ; } }