DEV Community

Peter Haddad
Peter Haddad

Posted on

Answer: Catch Firestore error in valueChanges subscription and retry in case of failure

The subscribe method contains a second argument incase of error:

Rx.Observable.prototype.subscribe([observer] | [onNext], [onError], [onCompleted])

  • [observer] (Observer): The object that is to receive notifications.

  • [onNext] (Function): Function to invoke for each element in the observable sequence.

  • [onError] (Function): Function to invoke upon exceptional termination of the observable sequence.
  • [onCompleted] (Function)…

Top comments (0)