acdlite/redux-router

Router state duplication

开放

#59 创建于 2015年9月18日

 (6 条评论) (0 个反应) (0 位负责人)JavaScript (215 个派生)batch import
help wanted

仓库指标

星标
 (2,316 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

It seems to me that there is some overhead with keeping router state. When using redux-react-router we have router state in our app state and also in the component's props. So we have

this.props.router.location this.props.router.component this.props.router.params this.props.router.routes

this.props.params this.props.location this.props.history this.props.routes this.props.route this.props.routeParams

Is there any way to reduce number of props kept?

贡献者指南