I have an issue where re-rendering of state causes ui issues and was suggested to only update specific value inside my reducer to reduce amount of re-rendering on a page.
You don't have to do everything in one line:
case 'SOME_ACTION': const newState = { ...state }; newState.contents = [ newState.contents[0], {title: newState.contnets[1].title, text: action.payload} ]; return newState