Skip to content

Questions about makeAutoObservable #3305

Answered by kubk
devuxer asked this question in Q&A
Feb 19, 2022 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Do you mean TS readonly types? No it doesnt, because TS readonly types don't exist in runtime. makeAutoObservable is all about automatic annotations, if you need more precise control you can use makeObservable. Also this ESLint plugin can be helpful for you: https://github.com/mobxjs/mobx/tree/main/packages/eslint-plugin-mobx#mobxexhaustive-make-observable

Replies: 1 comment 2 replies

Comment options

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

@kubk
Comment options

kubk Feb 19, 2022
Maintainer

Answer selected by devuxer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants