Skip to content

Commit 11ca15c

Browse files
authored
fix: skip source/screenshot refresh upon opening session info tab (#2418)
1 parent 1f5194a commit 11ca15c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/common/renderer/actions/SessionInspector.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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

780782
export 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

788790
export 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

Comments
 (0)