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

autoBind option don't bind flows automatically #2948

Closed
OldGraff opened this issue May 21, 2021 · 1 comment · Fixed by #2949 or #2950
Closed

autoBind option don't bind flows automatically #2948

OldGraff opened this issue May 21, 2021 · 1 comment · Fixed by #2949 or #2950
Assignees
Labels

Comments

@OldGraff
Copy link

Intended outcome:
Similary to actions, flows can be bound by default using autoBind option. — said in the documentation
makeAutoObservable(this, { }, { autoBind: true }); — not working b/c lose context

Actual outcome:
makeAutoObservable(this, { logout: flow.bound }, { autoBind: true }); — working don't lose context

How to reproduce the issue:

Try to autoBind generator and it lose context

Versions
"mobx": "6.3.1"

@urugator
Copy link
Collaborator

Thanks for the report. Should be fixed in next release (6.3.2)

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