acdlite/redux-router

Router state duplication

Open

#59 aperta il 18 set 2015

Vedi su GitHub
 (6 commenti) (0 reazioni) (0 assegnatari)JavaScript (215 fork)batch import
help wanted

Metriche repository

Star
 (2316 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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?

Guida contributor