Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 365 Bytes

File metadata and controls

20 lines (15 loc) · 365 Bytes

react-native-app-helpers/SessionStore

Synchronizes a local StateStore with a server.

Usage

import type { Sync } from "react-native-app-helpers";

const sync = new Sync(
  stateStore,
  request,
  logger,
  syncConfiguration,
  fileStore,
);

// Returns `noChangesMade`, `needsToRunAgain` or `atLeastOneChangeMade`.
await sync.run(abortSignal);