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

fix(ChangeStream): add _bindEvents to addListener function #13759

Merged
merged 1 commit into from Aug 22, 2023

Conversation

yury-ivaniutsenka
Copy link

Summary
ChangeStream doesn't work with fromEvent function from rxjs because this function uses addListener function which doesn't have _bindEvents
https://github.com/ReactiveX/rxjs/blob/master/src/internal/observable/fromEvent.ts#L291

Examples

const productsObservable = fromEvent(
    this.productsModel.watch(),
    'change',
).pipe(map((change) => change.fullDocument));

In current implementation nothing happens

@vkarpov15 vkarpov15 added this to the 7.4.4 milestone Aug 22, 2023
Copy link
Collaborator

@vkarpov15 vkarpov15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 👍

@vkarpov15 vkarpov15 merged commit 812b014 into Automattic:master Aug 22, 2023
17 of 18 checks passed
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.

None yet

2 participants