标签: reactjs react-redux
我的初始Redux状态如下:
const initialState = { product: { name: '', itemId: 0, value: 0 }, };
派发LOAD_PRODUCTS动作时,我想向relatedProducts: []添加新属性product.在Redux中可以吗?还是我仍需要在初始状态中使用relatedProducts?
LOAD_PRODUCTS
relatedProducts: []
product.
relatedProducts