3 ms·
The problem you describe is a data modeling problem, its because the same data comes from different places and is stored on multiple places, where each change t
by z3t4 5y ago
The problem you describe is a data modeling problem, its because the same data comes from different places and is stored on multiple places, where each change triggers many changes. Its like like programming using only global variables. The solution is to have one directional data flow rather then bidirectional. UI should only listed to changes- not mutate data directly. Instead UI input should be sent to a client/server data store that in turns trigger the listeners.
- chrisweekly 5y agoYes, this. Unidirectional data flow is a fundamentally good idea. IMHO it's why React (the paradigm) has become dominant.