-
-
Notifications
You must be signed in to change notification settings - Fork 126
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
5.4.1 Non observed properties are no longer included #205
Comments
https://codesandbox.io/embed/minimal-mobx-react-project-jh2lz |
it worked in 5.2 which was the version we upgraded from. This is a very breaking change for our app having all those fields just vanish. Shouldn’t it be a major version bump if it’s not a bug? |
The |
@urugator right you are. That was an oversight on my behalf as the model I was passing to createViewModel only had observable properties, and no unobserved ones. I'm working on a fix and hope to have it on a branch today. |
Published as 5.5.0 |
So 5.4.1 fixed a previous error for #191 but is causing another. Any properties that aren't marked as observable simply don't appear anymore.
If you cut and paste the below code into the demo sandbox, you'll see what happens. the
notObservedField
doesn't exist... and in 5.2 it did.https://codesandbox.io/s/wp88p
Edit: I should also mention that this only happened in production builds for me? Dev builds worked fine. Was a bit of a panic after rollover.
The text was updated successfully, but these errors were encountered: