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

Peter Haddad - Oct 8 '19 - - Dev Community

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)…
. . . . . . . .
Terabox Video Player