这将工作:
export function bindComments(postId) { return function(dispatch) { return API.fetchComments(postId).then(comments => { // dispatch dispatch({ type: BIND_COMMENTS, comments, postId }); }); };}
欢迎分享,转载请注明来源:内存溢出
这将工作:
export function bindComments(postId) { return function(dispatch) { return API.fetchComments(postId).then(comments => { // dispatch dispatch({ type: BIND_COMMENTS, comments, postId }); }); };}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)