Category "rxjs"

Wait for the reading of a csv file

I'm trying to read a csv file in Typescript with "csv-parse" library by creating an observable; the following code use fs.createReadStream to read the file; I w

RXJS data manipulation

I am trying to find the reactive way of manipulating data in an array of objects. In the array below, I want to determine the low score in groups of four and a

Rxjs only execute last item in queue with concatMap

I am using NGRX with RXJS. In the effects layer, I am using a concatMap to queue my requests, however, once the latest request is complete, I want to execute th

how to grab the payload inside of withlatestfrom with ngrx?

hi i have the following code where the selector requires an index to grab a value from the store, I use withLatestFrom to grab this value from the store only th

Angular not passing object to html page

I am having issues with learning angular, I didn't use to have these problems before, but now when I do these demos things work great until I switch from using

Angular - Async pipe in ngIf and text binding will not display first emitted value

I have very simple component template: <button (click)="emitNextValue()">Next Value</button> <p *ngIf="text$ | async"> {{ text$ | async }}

reactive programming in react

I have a fundamental question about reactive programming in react. As you know, a react component re-renders only if one of its props changes and does not aware

Container is not defined problem in React

I'm trying to learn React but this 'Container' is not defined and I don't know why I got this error, even though I did everything in the course Here is App.js i

How to use filter with two Observables and return only one in rxjs

I have a part of code that checks if two observables are up to date and returns the second observable if they are: combineLatest([$source1, $source2]).pipe( f

Use an observable inside of an interceptor

I want to write an interceptor to add an auth token to all the requests. My token comes from a lib, angularx-social-login, that only provides an Observable to g

.toPromise() and lastValueFrom() in rxjs

I have this observable createMyRecord(): Observable<myRecord> { return of(TEMPLATE_DB).pipe( mergeMap((template) => doTask(template

How can I return an Observable with data of other Observables using his return value in the others

I have a project in which I want to return an Observable of Hero object. My heroes have multiple id properties to fetch data from other Observables as a Skill o

How to update the source when use retrywhen RxJs

I'm doing a request to an API to create an order, it's probably got an error when trying to create the order with the same code because the method generateCode(

rxjs date range picker always wait for start and end observables

I have an angular material date picker and i'm trying get the start date and end date observables before I submit my query component.html <mat-form-f

angular and rxjs - removing properties from object

I have an endpoint that returns the following object properties: { "id": "1", "department": "sample", "address": "sample", "email": "[email protected]",

React unsubscribe from RxJS subscription in useEffect

A quick question regarding RxJS in useEffect hooks I've noticed the React community uses this unsubscribe pattern with RxJS: useEffect(()=>{ const sub = in

Wait until a certain value is true in RXJS

I am using angular and rxjs with an external service : I have the following method (simplified) getElevation(pos: Cesium.Cartographic): Observable<number&g

WebSocket from HTTPS website to different port, self-signed certificate

I am facing issues when trying to connect from a browser via WebSocket to a server. Website is hosted on a default port (80, 443, configurable - this is s selfh

Angular RxJS - Subscribe to Observable only IF subscribing to another Observable gave a certain result

I need some kind of special RxJS syntax if it exists for this scenario: this.electronicInvoiceService.getElectronicInvoice(this.invoiceId) .subs

edit inline angular (change detection strategy, subject, behavior subject)

my output Here is my code: https://stackblitz.com/edit/angular-ivy-w3lop5?file=src%2Fapp%2Fapp.component.html I am just a beginner for few days. I dont understa