Repository navigation
Trigger whole derived collection update when another observable changes #3826
Replies: 1 comment
|
this.WhenAnyValue(x => x.MaskSourcesRootPath)
.Select(root => MaskSourcesAbsolutePaths.ToObservableChangeSet()
.Transform(path => root == null ? path : FileUtils.MakeRelativePath(root, path)))
.Switch()
.ObserveOn(RxApp.MainThreadScheduler)
.Bind(out maskSourcesRelativePaths)
.Subscribe(); |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
How can I trigger the whole
MaskSourcesRelativePathscollection to update wheneverMaskSourcesRootPathchanges?I guess
WhenAnymust be used to observe changes in both properties on the same expression? I searched for how to do something similar but was unable to find an answer.All reactions