Sutil
Sutil copied to clipboard
Could we have a Store.mapStore and Store.mapRStore
I don't want to imply my design is best for this nor the naming, but I'd love it if something like this was added for child stores that don't redraw controls for unrelated parent properties being changed. If I'm following the behavior I'm seeing correctly even the existing Store.map fires everytime any parent property is changed.
https://github.com/ImaginaryDevelopment/SutilElmishPlay/blob/master/src/App/Adapters/Html.fs#L276
Sorry for the delay in response - let me look into this. Many thanks for the contribution
I'm looking over the example repository to understand the child store issue. Meanwhile, note that we now have mapDistinct with associated operator .>> to filter out update events where the projected value hasn't changed.
do you have example usages of this? I'm trying to figure out if it works for specific properties, or just the high-level store events.