Skip to content

Commit f6f7f82

Browse files
authored
add comment
1 parent 01de30d commit f6f7f82

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • src/libs/actions/OnyxUpdateManager/utils

src/libs/actions/OnyxUpdateManager/utils/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ import {applyUpdates} from './applyUpdates';
99
import {clear, enqueue, getUpdates} from './DeferredOnyxUpdates';
1010

1111
let lastUpdateIDAppliedToClient: number = CONST.DEFAULT_NUMBER_ID;
12+
13+
// We have used `connectWithoutView` here because OnyxUpdates is not connected to any UI
1214
Onyx.connectWithoutView({
1315
key: ONYXKEYS.ONYX_UPDATES_LAST_UPDATE_ID_APPLIED_TO_CLIENT,
1416
callback: (value) => (lastUpdateIDAppliedToClient = value ?? CONST.DEFAULT_NUMBER_ID),

0 commit comments

Comments
 (0)