These are chat archives for ThoughtWorksInc/Binding.scala
General questions should be asked on StackOverflow, not here. This room focuses on development of Binding.scala.
ensure that the components cannot modify the state
@pme123 What is the purpose of this rule?
Suppose you are creating an application for both desktop and web. You can share the same store (aka View Model) and external web services for both applications, and create different FXML template / HTML template.
However the two GUIs need some slightly different operations on View Model. Is it really necessary to share all those operations even when some of them are platform-specific?
I want to share some words from ESR's TAOUP
Rule of Representation: Fold knowledge into data, so program logic can be stupid and robust.
@pme123 If you like Redux's immutable store, and still want partial rendering. you can create some intermediate
Bindings, which can prevent unchanged value from re-rendering
An example is here:
render2 is not triggered because
store2 is unchanged.
Open your browser's inspector to see if it is re-rendered.