reactjs101 icon indicating copy to clipboard operation
reactjs101 copied to clipboard

#勘误#CH10_react-router-redux-node-isomorphic-open-cook

Open zhangzhenfei opened this issue 8 years ago • 1 comments

项目中的的AppBarContainer代码有误

dispatch(setRecipe({ key: 'recipeId', value: '' }));
//改成
dispatch(setRecipe({ keyPath: ['recipe', 'id'], value: '' }));

另外,我很奇怪,为嘛WebAPI的action,dispatch后,使用路由跳转,为啥要页面重新加载一次。。。

window.location.reload(); 
browserHistory.push('/'); 

这样不就失去单页应用的意义了?而且项目操作起来很不顺畅。。感觉不是这样用的

zhangzhenfei avatar Dec 17 '16 13:12 zhangzhenfei

sorry, let me check it later :) The case purpose is not single page app, but server side rendering.

kdchang avatar Jan 05 '17 12:01 kdchang