How to use the offix-conflicts-client.VersionedState function in offix-conflicts-client

To help you get started, we’ve selected a few offix-conflicts-client examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github aerogear / offix / packages / offix-client / src / config / ApolloOfflineClientConfig.ts View on Github external
constructor(options = {} as ApolloOfflineClientOptions) {
    Object.assign(this, options);

    this.cacheStorage = options.cacheStorage || createDefaultCacheStorage();
    this.offlineStorage = options.offlineStorage || createDefaultOfflineStorage();
    this.conflictStrategy = options.conflictStrategy || UseClient;
    this.conflictProvider = options.conflictProvider || new VersionedState();
    this.link = createDefaultLink(this);
  }
}

offix-conflicts-client

adds client side conflict detection and resolution

Apache-2.0
Latest version published 3 years ago

Package Health Score

51 / 100
Full package analysis

Similar packages