nefe/redux-in-chinese

`fetchPosts` func return `undefined`

minimAluminiumalism opened this issue · 0 comments

http://cn.redux.js.org/tutorials/essentials/part-5-async-logic/

export const fetchPosts = createAsyncThunk(... return response.posts ...)

response.post will return undefined, maybe it's response.data? I suppose ALL the response.post in this page should be replaced by response.data.