#勘误#CH10_react-router-redux-node-isomorphic-open-cook
zhangzhenfei opened this issue · 1 comments
zhangzhenfei commented
项目中的的AppBarContainer代码有误
dispatch(setRecipe({ key: 'recipeId', value: '' }));
//改成
dispatch(setRecipe({ keyPath: ['recipe', 'id'], value: '' }));
另外,我很奇怪,为嘛WebAPI的action,dispatch后,使用路由跳转,为啥要页面重新加载一次。。。
window.location.reload();
browserHistory.push('/');
这样不就失去单页应用的意义了?而且项目操作起来很不顺畅。。感觉不是这样用的
kdchang commented
sorry, let me check it later :)
The case purpose is not single page app, but server side rendering.