Question 1 / 1
A developer implements the RATE_COLOR case in the colors reducer:
case C.RATE_COLOR:
const target = state.find(c => c.id === action.id)
target.rating = action.rating
return [...state]
In unit tests, the returned array correctly shows the updated rating. But connected React components never re-render when a color is rated. What is the root cause?