Skip to content

Update no-nested-subscribe.md to use map#120

Open
dangrussell wants to merge 1 commit into
cartant:mainfrom
dangrussell:patch-2
Open

Update no-nested-subscribe.md to use map#120
dangrussell wants to merge 1 commit into
cartant:mainfrom
dangrussell:patch-2

Conversation

@dangrussell
Copy link
Copy Markdown

mapTo is to be removed in v9. Use map instead: map(() => value).

`mapTo` is to be removed in v9. Use `map` instead: map(() => value).
JasonWeinzierl added a commit to JasonWeinzierl/eslint-plugin-rxjs-x that referenced this pull request Nov 8, 2024
Remove mapTo from documentation and unit tests because it is deprecated by rxjs.

Fixes upstream cartant#120
oBusk pushed a commit to oBusk/esling-plugin-rxjs-x that referenced this pull request Nov 10, 2025
This change enhances `throw-error` to report passing a non-Error into
`Subject.error`.

```ts
import { Subject } from 'rxjs';

const subject = new Subject<void>();

// This causes the same problems as doing `throwError("Kaboom!")`.
subject.error("Kaboom!");
```

Resolves cartant#120
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant