Skip to content

Commit b30fc37

Browse files
authored
Update HttpUtils.ts to remove usage of Onyx.connect
1 parent 60677bc commit b30fc37

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/libs/HttpUtils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ const ABORT_COMMANDS = {
2222

2323
type AbortCommand = keyof typeof ABORT_COMMANDS;
2424

25-
Onyx.connect({
25+
// We have used `connectWithoutView` here because OnyxUpdates is not connected to any UI
26+
Onyx.connectWithoutView({
2627
key: ONYXKEYS.NETWORK,
2728
callback: (network) => {
2829
if (!network) {

0 commit comments

Comments
 (0)