Options
All
  • Public
  • Public/Protected
  • All
Menu

Class OfflineClient

OfflineClient

Enables offline workflows, conflict resolution and cache storage on top Apollo GraphQL JavaScript client.

Usage:

 const offlineClient = new OfflineClient(config);
 await offlineClient.init();

Hierarchy

  • OfflineClient

Implements

Index

Constructors

constructor

Properties

queueListeners

queueListeners: OfflineQueueListener[] = []

Accessors

offlineStore

  • Get access to offline store that can be used to visualize offline operations that are currently pending

    Returns OfflineStore

Methods

Protected decorateApolloClient

init

registerOfflineEventListener

Protected restoreOfflineOperations

  • restoreOfflineOperations(offlineLink: OfflineLink): Promise<void>

Generated using TypeDoc