rxjs
rxjs copied to clipboard
False positive in deprecation with mergMap
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
I can't confirm this in 7.x or 8.x.