-
Notifications
You must be signed in to change notification settings - Fork 642
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
Make array and map types optional by default #906
Comments
array and map types will be optional by default when used directly as model properties. Tried making child objects optional as well, but this became very confusing in combination with |
Scheduled for 3.0, closing |
- a8c7c60 implemented this but did not change the docs
add docs re: optional map / array types of #906
How to make them mandatory when I need it ? Seems to me the only way would be adding a var MyList = types.model({
list: types.refinement(types.array, v => v !== undefined);
}); Would this refined type still return |
No description provided.
The text was updated successfully, but these errors were encountered: