3 ms·
Interesting article, but I cant help but think every one of those points is 'fixed' in EmberJS (correct me if I'm wrong!). Central stores, central place to fetc
by orf 10y ago
Interesting article, but I cant help but think every one of those points is 'fixed' in EmberJS (correct me if I'm wrong!). Central stores, central place to fetch 'models' (data over Ajax), dependency injection so it's all mockable, a run loop, simple and understandable data flows.
The central store and the run loop is very powerful. If you have two completely unrelated components issue two fetches for the same model type but different IDs (ie two different blog comments) Ember coalesces them into a single request (I.e /api/comments?id[]=1&id[]=2) transparently. That's awesome.