4 ms·
> single store sounds great from the conceptual point of view, but I'm not sure about the performance one But the Redux "single store" is actually a compositio
by danmaz74 11y ago
> single store sounds great from the conceptual point of view, but I'm not sure about the performance one
But the Redux "single store" is actually a composition of multiple stores, each with its own reducer function. Performance-wise, it's actually better than vanilla Flux, because, when an action causes N stores to change with vanilla Flux, you can get up to N renders of your components (depending on how many stores they subscribe to). At least, with Redux there is only one render when the whole store has been updated.
- seivan 11y agoWhen I was looking around and comparing I think most allowed for some form of aggregation and syncing them into one call. Not sure though. Still learning.