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

flow.bound doesn't work,generator func doesn't bind this correctly #3271

Closed
QJerryxjh opened this issue Jan 21, 2022 · 1 comment · Fixed by #3273
Closed

flow.bound doesn't work,generator func doesn't bind this correctly #3271

QJerryxjh opened this issue Jan 21, 2022 · 1 comment · Fixed by #3273
Labels

Comments

@QJerryxjh
Copy link

Intended outcome: use flow.bound ,generator func bind this correctly

Actual outcome: this is undefined

How to reproduce the issue: codesandbox url

Versions
mobx
6.3.12
mobx-react-lite
3.2.3
react
17.0.2
react-dom
17.0.2
react-scripts
4.0.0

@urugator
Copy link
Collaborator

urugator commented Jan 21, 2022

Weird, how is this passing? :D

expect(await foo["flow.bound"].call(null)).toBe(foo)

EDIT: managed to replicate, working on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants