Skip to content

unclosed rxjs streams #12

@Roshane-Johnson

Description

@Roshane-Johnson

The snippet below shows an observable being subscribed to however it's not set to a variable which means the subscription is not stored for unsubscriptions later, there are a few of these through out the application.

this.http.get<ApiResponse>(`${environment.apiUrl}/gradient/all`).subscribe({
next: (resp: ApiResponse) => {
this.gradients = resp.data;
},
error: (error: HttpErrorResponse) => {
this.utilService.devlog(error.error);
},
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions