I have an observable which is maked with firebase/fireStore. if I subscribe this observable in component it works . but If I pipe this observable it doesn't work even though i expect . and I am not getting any error. my question; why it doesn't work?
my codes;
service;
getLastSeans(uid) {
return this.afs.doc<any>(`users/${uid}/lastseans/seansLive`).valueChanges();
}
component;
with pipe it doesn't work
this.roomService.getLastSeans(this.userId).pipe(map(x=>{console.log(x);return x;}));
if I subscribe it work like this;
this.roomService.getLastSeans(this.userId).subscribe(x=>console.log(x));
I want to learn why this happen?