We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01de30d commit f6f7f82Copy full SHA for f6f7f82
1 file changed
src/libs/actions/OnyxUpdateManager/utils/index.ts
@@ -9,6 +9,8 @@ import {applyUpdates} from './applyUpdates';
9
import {clear, enqueue, getUpdates} from './DeferredOnyxUpdates';
10
11
let lastUpdateIDAppliedToClient: number = CONST.DEFAULT_NUMBER_ID;
12
+
13
+// We have used `connectWithoutView` here because OnyxUpdates is not connected to any UI
14
Onyx.connectWithoutView({
15
key: ONYXKEYS.ONYX_UPDATES_LAST_UPDATE_ID_APPLIED_TO_CLIENT,
16
callback: (value) => (lastUpdateIDAppliedToClient = value ?? CONST.DEFAULT_NUMBER_ID),
0 commit comments