Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could we have a Store.mapStore and Store.mapRStore #82

Open
ImaginaryDevelopment opened this issue Mar 1, 2024 · 2 comments
Open

Could we have a Store.mapStore and Store.mapRStore #82

ImaginaryDevelopment opened this issue Mar 1, 2024 · 2 comments

Comments

@ImaginaryDevelopment
Copy link

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

@davedawkins
Copy link
Owner

Sorry for the delay in response - let me look into this. Many thanks for the contribution

@davedawkins
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants