-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Description
Describe the bug
mergeWith can accept an ObservableInput as an argument, but when the argument is an array (it is a legal ObservableInput), an error will be reported:
You provided 'xxx' where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.
Expected behavior
Treat the array as a normal ObservableInput
Reproduction code
import { EMPTY, mergeWith } from 'rxjs';
EMPTY.pipe(mergeWith([1])).subscribe(console.log);Reproduction URL
https://stackblitz.com/edit/rxjs-aixohl?file=index.ts
Version
7.8
Environment
No response
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels