rxjs icon indicating copy to clipboard operation
rxjs copied to clipboard

False positive in deprecation with mergMap

Open cr4md3v opened this issue 2 years ago • 1 comments

Describe the bug

When implementing the use of mergMap in Angular Ngrx effects, ESLint warns about the deprecated use of mergMap even if the operator is used correctly.

Expected behavior

The deprecation message should not appear when the operator is used correctly.

Reproduction code

export const deleteAddon = createEffect(
    (actions$ = inject(Actions), repository: AddonsRepository = inject(ADDONS_REPOSITORY)) => {
        return actions$.pipe(
            ofType(DeleteAddon),
            // This mergeMap alerts for deprecation!!
            mergeMap(({ id }) => deleteAddonUseCase(repository, id).pipe(
                map(() => DeleteAddonSuccess()),
            )),
        );
    },
    { functional: true },
);

Reproduction URL

No response

Version

7.8.1

Environment

No response

Additional context

No response

cr4md3v avatar Mar 15 '24 19:03 cr4md3v

I can't confirm this in 7.x or 8.x.

benlesh avatar Apr 16 '24 20:04 benlesh