charto / classy-mst

ES6-like syntax for mobx-state-tree
MIT License
91 stars 5 forks source link

Type Tag not present in subclass #20

Open philllies opened 5 years ago

philllies commented 5 years ago

I tried to reproduce the polymorphism example from the readme. While subclassing appears to be working correctly, there is no $, nor any other property that would tag the subclass with the string I provide as third argument to mst, e.g., mst(code, model, "mysubclass).

Any idea why this is not working as intended?

jjrv commented 4 years ago

Did you pass the parent class prototype as the second parameter to shim?