2 ms·
On a high-level, I am still struggling to understand the real difference between two-way data flow and unidirectional data flow. Sure, it is actions, and dispat
by mynegation 11y ago
On a high-level, I am still struggling to understand the real difference between two-way data flow and unidirectional data flow. Sure, it is actions, and dispatchers, and stores, but if you collapse them into one block, it is still two-way. What is possible with this setup that two-way data flow could not do?
- KurtMueller 11y agoWell, for one, you don't have to rely on observers/watchers anymore. You also don't have to pass functions back up scopes/templates/components. It's also really easy to keep your code organized (since data can only go one direction, in a big circle, it's much easer to follow the flow of logic).