Does mobx makeAutoObservable() recurse? #3250
-
I'm using React, mobx, typescript, all newest version.
This is my first time using mobx, and couldn't figure out by reading documentation for makeAutoObservable. Thanks. |
Beta Was this translation helpful? Give feedback.
Answered by
mweststrate
Jan 4, 2022
Replies: 1 comment 3 replies
-
TL,DR makeObservable is recursive, but only for built-ins: Map, Array, Set, and all objects that are not class instances (aka. plain objects; their prototype is |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
Lechros
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
TL,DR makeObservable is recursive, but only for built-ins: Map, Array, Set, and all objects that are not class instances (aka. plain objects; their prototype is
null
orObject
)