Skip to content

Selected item/Value woes #901

Closed Answered by JakenVeina
glen-nicol asked this question in Q&A
May 3, 2024 · 1 comments · 10 replies
Discussion options

You must be logged in to vote

Or is the answer "don't replace items and update the existing one instead"?

Yup.

Seems counter to the whole System.Reactive immutable methodology.

I don't know if I'd QUITE say that, but the sentiment is right: it can feel wrong to transition from a layer of immutable state to highly-mutable state. But that's a fallacy, there's nothing wrong about it.

The "immutable state store" pattern isn't the end goal, it's a means to an end. It works really well in your business layer and data layers, but it's a mistake to think that you should be extending it up to the View/ViewModel layers. WPF/UWP/all the XAML-based frameworks, they're simply not built that way. ViewModels work best when they …

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@glen-nicol
Comment options

@JakenVeina
Comment options

@glen-nicol
Comment options

@glen-nicol
Comment options

@JakenVeina
Comment options

Answer selected by glen-nicol
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants