-
Notifications
You must be signed in to change notification settings - Fork 10
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
MST integration - views #28
Comments
Hmm.. honestly I have no idea. I've never used MST. I'm just assuming observable array here for input. The error sounds like it's coming from some internal that is getting used I guess in an incorrect way as the term |
Sounds like a bug that was fixed in the MobX 5.15.6 |
Thanks. @Baael can you retry with the latest? |
@ryansolid unfortunately not working, reason is view getter is returning plain array in this case. I am investigating it, however I have no idea at all how to get administration from it :P For now I used |
I need to track something reactive. I changed this library to only work with observable array. But I added another mode to handle this (v0.12.2). Given the multitude of ways you can return an array.. property access or boxed value or observable array itself, I'm going to allow map to take a function that does the reactive access.. So if are tracking a plain array as a property on your observable you'd do this: map(() => obsv.list, (item) => <li>{item.something{</li>) Notice the difference between observable array: https://codesandbox.io/s/mobx-simple-todos-cp6kw Plain array: https://codesandbox.io/s/mobx-simple-todos-boxed-vjwju @Baael does that help? |
@ryansolid sorry I wasn't available for a week, I will check it. This idea looks good and should work, thank you! |
Is there any way to observe computed values / views from MST?
like
It seems it is not obtaining administration from it.
The text was updated successfully, but these errors were encountered: