Skip to content

Commit dc69063

Browse files
committed
added comment to appStateSlice
1 parent 2937578 commit dc69063

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/src/redux/reducers/slice/appStateSlice.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -860,6 +860,7 @@ const appStateSlice = createSlice({
860860
},
861861
//deleted 'convertToJSX' function, which threw errors upon opening
862862
openProject: (state, action) => {
863+
// returning the action.payload is a Redux shortcut that updates the entire app state at the same time
863864
return action.payload;
864865
},
865866
addElement: (state, action) => {

0 commit comments

Comments
 (0)