Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CompositeQueueListener

Wraps multiple listeners allowing them to be registered and unregistered dynamically.

Hierarchy

  • CompositeQueueListener

Implements

Index

Constructors

constructor

Methods

onOperationEnqueued

onOperationFailure

  • onOperationFailure(operation: Operation, graphQLError?: any, networkError?: any): void
  • Called when back online and operation fails with GraphQL error

    graphQLError - application error (it means that user need to react to error and sent this operation again) networkError - operation was retried but it did not reached server (it will be reatempted again)

    Parameters

    • operation: Operation
    • Optional graphQLError: any
    • Optional networkError: any

    Returns void

onOperationSuccess

  • onOperationSuccess(operation: Operation, result: FetchResult): void

queueCleared

  • queueCleared(): void

Generated using TypeDoc