Skip to content

makeAutoObservable and make #2847

Answered by kubk
MutelyMilo asked this question in Q&A
Mar 12, 2021 · 3 comments · 4 replies
Discussion options

You must be logged in to vote

It's documented here: https://mobx.js.org/observable-state.html#makeautoobservable

"Members marked with false in the overrides argument will not be annotated"

Function makeAutoObservable automatically converts properties to observables, methods to actions and getters to computed. Using false in second arguments allows skipping this conversion for a specific field.

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@MutelyMilo
Comment options

Answer selected by urugator
Comment options

You must be logged in to vote
1 reply
@MutelyMilo
Comment options

Comment options

You must be logged in to vote
2 replies
@urugator
Comment options

@kubk
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #2846 on March 12, 2021 07:23.