Last active
May 25, 2022 20:11
-
-
Save adeleke5140/3eb0b754bb912d2113ac470a773b625d to your computer and use it in GitHub Desktop.
Issue with Duplicate State
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//problem is from the useReducer making two changes to say. | |
const newState = JSON.parse(JSON.stringify(state)) as AppState | |
newState.lists[targetLaneIndex].tasks.push({ | |
id: uuidv4(), | |
text: action.payload.text | |
}) | |
return newState | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@SalvadorLekan