Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MobX state tree? #4

Open
kristianmandrup opened this issue Aug 18, 2018 · 1 comment
Open

MobX state tree? #4

kristianmandrup opened this issue Aug 18, 2018 · 1 comment

Comments

@kristianmandrup
Copy link

Would this work with MobX state tree?
If not, I'd like to have a go at it...

@alexhisen
Copy link
Owner

I don't know that much about mobx-state-tree but I doubt it would work. mobx-schema-form is a wrapper around react-schema-form/lib/utils selectOrSet() which expects a plain object whose properties can be updated.

It might be possible to modify mobx-schema-form to check for 'getter' and 'setter' properties on data and dataErrors objects and, if present, invoke them instead of selectOrSet(). These functions would have to understand how to parse the nested object/array string syntax produced by https://www.npmjs.com/package/objectpath if you want them to work on non-flat data objects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants