You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to achieve consistency, i want to convert methods returning Promises to Observable.
However, errors are ignored when trying to catch the error either from the method or from the caller of the method.
See the code below.
createList(newList: NewListDTO){constcollectionRef=collection(this.db,`lists`);constnewListDoc=addDoc(collectionRef,{name: newList.name,uid: newList.uid,created_at: serverTimestamp(),});// return defer(async () => {// return await newListDoc;// });returnscheduled(newListDoc,asyncScheduler).pipe(// FIXME: error is not being caught from firstore addDoccatchError((err)=>{returnthrowError(()=>err);}),);}
The text was updated successfully, but these errors were encountered:
In order to achieve consistency, i want to convert methods returning Promises to Observable.
However, errors are ignored when trying to catch the error either from the method or from the caller of the method.
See the code below.
The text was updated successfully, but these errors were encountered: