Options
All
  • Public
  • Public/Protected
  • All
Menu

Class OfflineMutationsHandler

Class used to send offline changes again after error is sent to user or after application restart. It will trigger saved offline mutations using client to restore all elements in the link.

Hierarchy

  • OfflineMutationsHandler

Index

Constructors

constructor

Methods

getOfflineContext

  • getOfflineContext(id: string): object

mutateOfflineElement

  • mutateOfflineElement(item: OfflineItem): Promise<void>

replayOfflineMutations

  • replayOfflineMutations(): Promise<void>
  • Replay mutations to client. This operation will help to rebuild Apollo Link observer chain after page refresh/app restart

    Returns Promise<void>

Static isMarkedOffline

  • isMarkedOffline(operation: Operation): boolean
  • Checks if operation was scheduled to saved to offline queue. This operations have special handling. They are never forwarded when sent back again to client.

    Parameters

    • operation: Operation

    Returns boolean

Generated using TypeDoc