-
Following the guide at https://mobx.js.org/subclassing.html, I have created a parent class and a subclass that inherits from it. My goal is to have a parent class that contains a number of actions, observables, and so forth, and then give the subclass the option to override a few of them and also add some new ones. More concretely, suppose that this is my parent class:
My subclass is the following:
I'm guessing there is something I've overlooked as I get an error stating that I'd appreciate some help with this. Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
/cc @urugator |
Beta Was this translation helpful? Give feedback.
-
Can't reproduce https://codesandbox.io/s/nameless-sky-1gt9c?file=/index.js |
Beta Was this translation helpful? Give feedback.
Can't reproduce https://codesandbox.io/s/nameless-sky-1gt9c?file=/index.js