dsuryd / dotNetify

Simple, lightweight, yet powerful way to build real-time web apps.
https://dotnetify.net
Other
1.17k stars 164 forks source link

Changed notification #189

Closed mojo-man closed 5 years ago

mojo-man commented 5 years ago

I have a change that happens several layers down inside of an object hierarchy. When I call the Changed() method, do I need to call Changed() on all levels of the hierarchy above it? If so - which order? Inside->Out or the other way?

dsuryd commented 5 years ago

The BaseVM.Changed method isn't intended for nested objects. You should implement your own changed notification to let the top view model know to call Changed for the affected property.