Skip to content

Commit

Permalink
use non-default exports
Browse files Browse the repository at this point in the history
  • Loading branch information
chrispader committed May 15, 2024
1 parent 17c5d0b commit 15600b0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/libs/actions/OnyxUpdateManager/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import ONYXKEYS from '@src/ONYXKEYS';
import type {OnyxUpdatesFromServer} from '@src/types/onyx';
import {isValidOnyxUpdateFromServer} from '@src/types/onyx/OnyxUpdatesFromServer';
import * as OnyxUpdateManagerUtils from './utils';
import DeferredOnyxUpdates from './utils/DeferredOnyxUpdates';
import * as DeferredOnyxUpdates from './utils/DeferredOnyxUpdates';

// This file is in charge of looking at the updateIDs coming from the server and comparing them to the last updateID that the client has.
// If the client is behind the server, then we need to
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,4 @@ function clear(options?: ClearDeferredOnyxUpdatesOptions) {
}
}

const DeferredOnyxUpdates = {getMissingOnyxUpdatesQueryPromise, setMissingOnyxUpdatesQueryPromise, getUpdates, isEmpty, process, enqueue, enqueueAndProcess, clear};

export default DeferredOnyxUpdates;
export {getMissingOnyxUpdatesQueryPromise, setMissingOnyxUpdatesQueryPromise, getUpdates, isEmpty, process, enqueue, enqueueAndProcess, clear};
2 changes: 1 addition & 1 deletion src/libs/actions/OnyxUpdateManager/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type {DeferredUpdatesDictionary, DetectGapAndSplitResult} from '@userActi
import ONYXKEYS from '@src/ONYXKEYS';
import {applyUpdates} from './applyUpdates';
// eslint-disable-next-line import/no-cycle
import DeferredOnyxUpdates from './DeferredOnyxUpdates';
import * as DeferredOnyxUpdates from './DeferredOnyxUpdates';

let lastUpdateIDAppliedToClient = 0;
Onyx.connect({
Expand Down

0 comments on commit 15600b0

Please sign in to comment.