trailsjs / trailmix

:candy: UI for generating a custom build using trailpacks
https://trailsjs.io/plugins
MIT License
12 stars 1 forks source link

Move CardRow reducer logic to outer component and pass in through partial #5

Open nogtini opened 8 years ago

nogtini commented 8 years ago

So as it stands all reducers related to all rows are pulled in and 'switched' based on a props type. This will cause n*n hooking up to the reducer and dynamic recomputing of all CardRows anytime any one of them changes.

We want to associate each CardRow with its appropriate reducer only, such that only it will recompute when its specific reducer is updated, and no other.