Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when mergeWith argument is an array #7278

Closed
caikan opened this issue Jun 2, 2023 · 2 comments
Closed

error when mergeWith argument is an array #7278

caikan opened this issue Jun 2, 2023 · 2 comments

Comments

@caikan
Copy link

caikan commented Jun 2, 2023

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

@mrgreentm
Copy link

this is an probleam

@jakovljevic-mladen
Copy link
Member

Fixed in #7281.

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

No branches or pull requests

3 participants