4 ms·
I really like the philosophy of Redux (app state in a single object, pure components w only props, no state), but still think implementing this idea with observ
by findjashua 11y ago
I really like the philosophy of Redux (app state in a single object, pure components w only props, no state), but still think implementing this idea with observables would lend a couple extra benefits:
1. no magic or monkeypatching ( like connect does to container's props)
2. combine/merge make data dependencies much easier to reason about that a single node's state being updated by multiple 'case' statements.
ps: as a poc, I put together a tiny snippet the other night (http://plnkr.co/edit/JIm88A7k7O0TCgfZ0O9f?p=preview http://plnkr.co/edit/JIm88A7k7O0TCgfZ0O9f?p=preview).