Skip to content

Commit 1af164e

Browse files
committed
Resolves velopert#231
1 parent ecfac8d commit 1af164e

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

_old_corrections/개정판-1쇄.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,18 @@ async function runTasks() {
171171
+ 모두 제대로 작동한다면 16.1절로 돌아가서 다시 한번 개념을 훑어 보세요. 그리고 다음 내용을 계속 진행해주세요.
172172
```
173173

174+
## 17.6.1.2 (pg. 460)
175+
176+
`REMOVE` 액션 리듀서에서 `action.payload`를 사용해야 하는데 `action.id`를 사용하고 있습니다.
177+
178+
```diff
179+
[REMOVE]: (state, action) => ({
180+
...state,
181+
+ todos: state.todo.filter(todo => todo.id !== action.payload)
182+
- todos: state.todo.filter(todo => todo.id !== action.id)
183+
})
184+
```
185+
174186
## 17.7.6 (pg. 470)
175187

176188
파일명이 잘못되었습니다.

corrections.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,18 @@ async function runTasks() {
128128
}
129129
```
130130

131+
## 17.6.1.2 (pg. 460)
132+
133+
`REMOVE` 액션 리듀서에서 `action.payload`를 사용해야 하는데 `action.id`를 사용하고 있습니다.
134+
135+
```diff
136+
[REMOVE]: (state, action) => ({
137+
...state,
138+
+ todos: state.todo.filter(todo => todo.id !== action.payload)
139+
- todos: state.todo.filter(todo => todo.id !== action.id)
140+
})
141+
```
142+
131143
## 20.3.2 (pg. 549-550) 업데이트
132144

133145
css-loader가 업데이트 됨에 따라 기존 `exportOnlyLocals` 라는 옵션이 `onlyLocals`로 변경되었습니다.

0 commit comments

Comments
 (0)