Skip to content

Commit 69579fd

Browse files
krisaoemarkerikson
authored andcommitted
Docs: Fix mutating state example. (#145)
The comparison example on how to "mutate" state was not targeting the correct state property.
1 parent 364dce3 commit 69579fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/usage/usage-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ Can be simplified down to just:
223223
```js
224224
updateValue(state, action) {
225225
const {someId, someValue} = action.payload;
226-
state.first.second[someId] = someValue;
226+
state.first.second[someId].fourth = someValue;
227227
}
228228
```
229229

0 commit comments

Comments
 (0)