Using the make(auto)Observable api to make an already created instance of a class reactive #4579
Unanswered
Alexandreee100
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I want to create a domain model separated from the reactive library, and after it is created, I want to make it reactive. As far as I know, the MobX documentation recommends using make(auto)observable inside the class constructor, but it doesn’t prohibit using this API on an already created object (including non-plain objects with a prototype different from Object). What other ways are there to make a class instance reactive from the outside, apart from make(auto)observable? And is using make(auto)observable the normal way to achieve my goal?
I mean this:
Beta Was this translation helpful? Give feedback.
All reactions