@@ -759,6 +759,7 @@ export function getActiveAppId(isIOS, isAndroid) {
759759 const action = applyClientMethod ( {
760760 methodName : 'executeScript' ,
761761 args : [ 'mobile:activeAppInfo' , [ ] ] ,
762+ skipRefresh : true ,
762763 } ) ;
763764 const { bundleId} = await action ( dispatch , getState ) ;
764765 dispatch ( { type : SET_APP_ID , appId : bundleId } ) ;
@@ -767,6 +768,7 @@ export function getActiveAppId(isIOS, isAndroid) {
767768 const action = applyClientMethod ( {
768769 methodName : 'executeScript' ,
769770 args : [ 'mobile:getCurrentPackage' , [ ] ] ,
771+ skipRefresh : true ,
770772 } ) ;
771773 const appPackage = await action ( dispatch , getState ) ;
772774 dispatch ( { type : SET_APP_ID , appId : appPackage } ) ;
@@ -779,15 +781,15 @@ export function getActiveAppId(isIOS, isAndroid) {
779781
780782export function getServerStatus ( ) {
781783 return async ( dispatch , getState ) => {
782- const status = applyClientMethod ( { methodName : 'status' } ) ;
784+ const status = applyClientMethod ( { methodName : 'status' , skipRefresh : true } ) ;
783785 const { build} = await status ( dispatch , getState ) ;
784786 dispatch ( { type : SET_SERVER_STATUS , status : build } ) ;
785787 } ;
786788}
787789
788790export function getFlatSessionCaps ( ) {
789791 return async ( dispatch , getState ) => {
790- const action = applyClientMethod ( { methodName : 'getSession' } ) ;
792+ const action = applyClientMethod ( { methodName : 'getSession' , skipRefresh : true } ) ;
791793 const flatSessionCaps = await action ( dispatch , getState ) ;
792794 dispatch ( { type : SET_FLAT_SESSION_CAPS , flatSessionCaps} ) ;
793795 } ;
0 commit comments