Skip to content

Commit 38520c9

Browse files
committed
Merge branch 'main' into remove-onyx-connect-in-EmojiUtils
2 parents ce77b8e + 161d1ff commit 38520c9

2 files changed

Lines changed: 6 additions & 15 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"test:debug": "TZ=utc NODE_OPTIONS='--inspect-brk --experimental-vm-modules' jest --runInBand",
4747
"perf-test": "NODE_OPTIONS=--experimental-vm-modules npx reassure",
4848
"typecheck": "NODE_OPTIONS=--max_old_space_size=8192 tsc",
49-
"lint": "NODE_OPTIONS=--max_old_space_size=8192 eslint . --max-warnings=284 --cache --cache-location=node_modules/.cache/eslint",
49+
"lint": "NODE_OPTIONS=--max_old_space_size=8192 eslint . --max-warnings=282 --cache --cache-location=node_modules/.cache/eslint",
5050
"lint-changed": "NODE_OPTIONS=--max_old_space_size=8192 ./scripts/lintChanged.sh",
5151
"lint-watch": "npx eslint-watch --watch --changed",
5252
"shellcheck": "./scripts/shellCheck.sh",

src/libs/actions/Link.ts

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,16 @@ import ROUTES from '@src/ROUTES';
1515
import {canAnonymousUserAccessRoute, isAnonymousUser, signOutAndRedirectToSignIn} from './Session';
1616

1717
let isNetworkOffline = false;
18-
Onyx.connect({
18+
// Use connectWithoutView since this is to open an external link and doesn't affect any UI
19+
Onyx.connectWithoutView({
1920
key: ONYXKEYS.NETWORK,
2021
callback: (value) => (isNetworkOffline = value?.isOffline ?? false),
2122
});
2223

2324
let currentUserEmail = '';
2425
let currentUserAccountID: number = CONST.DEFAULT_NUMBER_ID;
25-
Onyx.connect({
26+
// Use connectWithoutView since this is to open an external link and doesn't affect any UI
27+
Onyx.connectWithoutView({
2628
key: ONYXKEYS.SESSION,
2729
callback: (value) => {
2830
currentUserEmail = value?.email ?? '';
@@ -237,15 +239,4 @@ function getTravelDotLink(policyID: OnyxEntry<string>) {
237239
});
238240
}
239241

240-
export {
241-
buildOldDotURL,
242-
openOldDotLink,
243-
openExternalLink,
244-
openLink,
245-
getInternalNewExpensifyPath,
246-
getInternalExpensifyPath,
247-
openTravelDotLink,
248-
buildTravelDotURL,
249-
openExternalLinkWithToken,
250-
getTravelDotLink,
251-
};
242+
export {openOldDotLink, openExternalLink, openLink, getInternalNewExpensifyPath, getInternalExpensifyPath, openTravelDotLink, buildTravelDotURL, openExternalLinkWithToken, getTravelDotLink};

0 commit comments

Comments
 (0)