acdlite/redux-router

Router state duplication

Open

#59 opened on 2015年9月18日

GitHub で見る
 (6 comments) (0 reactions) (0 assignees)JavaScript (215 forks)batch import
help wanted

Repository metrics

Stars
 (2,316 stars)
PR merge metrics
 (30d に merged 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?

コントリビューターガイド