RxCookbook
RxCookbook copied to clipboard
Deep property change notification with the Switch operator
Either show how to build a query that allows a user to observe ObjA.PropB.SubPropC by leaveraging Switch e.g.
ObjA.WhenPropertyChanges(vm=>vm.PropB)
.Select(b=>b.WhenPropertyChanges(vm=>vm.SubPropC))
.Switch()
We could potentially extend this to build an Expression builder so you could just
ObjA.WhenPropertyChanges(vm=>vm.PropB.SubPropC)