Skip to content

Possible bug in no-nested-subscribe #67

@fchiumeo

Description

@fchiumeo

The no-nested-subscribe rule should only report subscribe within a subscribe callback or within any operator callback ?
Because it's currently reporting an error in a subscribe within a map callback
(in package rxjs-tslint-rules it's OK)

from(/* Observable */)
    .pipe(
        map((items: any[]) =>
        {
            form.get('control').valueChanges
                //  error  Nested subscribe calls are forbidden  rxjs/no-nested-subscribe
                .subscribe((billing: boolean) => 
                {
                    // code
                });
        }))
    .subscribe(() =>
    {
        //more code
    });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions