Cannot read property 'validate' of undefined when 'map' MST 'create' #2797
-
This question is about I'm new to this library and integrating with an existing React app. I have my first model and I can
⬆️ that works fine, but when I try to generalize to a
I'm a bit too new to the library to parse it myself so any help would be appreciated 🙏🏻 Full stack from browser: I also tried this approach ⬇️ and I now get
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Probably you'll need |
Beta Was this translation helpful? Give feedback.
Probably you'll need
config.layers.static.create(data => StaticLayer.create(data))
instead. For your last errors, make sure to familiarize yourself with actions as described in the documentation. For further questions MST has it's own community living over here: https://spectrum.chat/mobx-state-tree