Redux Bad Practices #6: Mix UI State with Model Data

{
products: {
1: { id: 1, name: 'Shirt', isSelected: true },
2: { id: 2, name: 'Pants' }
}
}
{
products: {
1: { id: 1, name: 'Shirt' },
2: { id: 2, name: 'Pants' }
},
selectedProducts: { 1: true }
}

--

--

http://adamklein.dev/ I write code, and speak about it

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store