const InitialState = {
uploadImages: [],
};
On the first update it gets filled with objects and looks like that:
const InitialState = {
uploadImages: ['a', 'b', 'c', 'd'],
};
i get payload:
{arrayIndexToChange: 1, ValutAtIndex: 'e'}
Is there anyway i can return immutable state inside my reducer like:
return [...state, //someway to update value at index in array ]