DaffQueuedApollo

A service that will queue mutate calls to Apollo. It will not send subsequent mutate requests until the previous one has been completed. This is useful for avoiding race conditions on the backend. This should be used alongside Apollo.

Properties

Name Type Description
queue (() => void)[]
mutate Observable<FetchResult<T>> Queue up a mutate request. The request will not actually be queued until the returned observable is subscribed. If the queue is empty, the request will be sent when it enters the queue. Otherwise, it will be sent when it reaches the front of the queue. The observable will complete after it emits once.
Graycore, LLC © 2018 - 2024. Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.