Comments (4)
A very simple workaround/method (on the library side) is to add an isEqual : 'a -> 'a -> bool
parameter to Binding.oneWayLazy
, allowing users to optimize as needed. It could be as simple as (=)
(which is the current behavior), but it could also be e.g.
fun (simple1, list1) (simple2, list2) ->
simple1 = simple2 && Object.ReferenceEquals(list1, list2)
This should of course be documented to provide clear guidance.
I kinda like this. I don't like pushing too much on users, but after all, oneWayLazy
is there solely for performance reasons, and currently it is potentially lacking in that respect.
from elmish.wpf.
The React renderer for Fable has similar functions: lazyView
and lazyViewWith
, with lazyView
being the same as lazyViewWith (=)
. Elmish.WPF could follow the same principle, so users can provide their own equality functions, if (=)
turns out to be too slow.
from elmish.wpf.
Yes, I like that very much. Thanks! 👍
from elmish.wpf.
Closed by a5e1170
from elmish.wpf.
Related Issues (20)
- How to send a message to the Dispatcher from a custom event? HOT 2
- Feature request: View model member exposed as Action<T> HOT 2
- How to enable the user to find a TreeViewItem HOT 29
- How to update binding after validation HOT 4
- (resolved-delete)
- 3rd-party custom Window : Building fine but not showing at runtime HOT 8
- Best way to implement "Statically-typed view model" approach? HOT 5
- Drop targeting of .NET Core 3.1? HOT 1
- [Scaling] - Lenses and Submodels: MVU antipatterns? HOT 5
- How to force Binding.addValidation upon returning to wpf usercontrol? HOT 3
- WPF Helpers: GetFocusedElement, GetSelectedElement(s), DragDrop, etc. :: A global approach :: HOT 1
- ApplicationAlreadyRunning Exception HOT 4
- How to create static `OneWaySeq` binding? HOT 6
- Static vs Dynamic bindings performance HOT 13
- Throttling particular message type HOT 5
- `HasErrors` property changed must be raised when errors changed HOT 2
- Build fails for Elmish.WPF HOT 4
- "TwoWayT" and "OneWaySeqT" binding not showing (Version 4.0.0-beta-54) HOT 3
- [Statically-Typed VM] - Missing proper documentation (samples/examples/best practices..) HOT 10
- How to get the listviewitem when clicking on its checkbox with Binding.twoWay in subModelSeq? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elmish.wpf.