Router in a good shape

This commit is contained in:
Edin Dazdarevic
2017-04-09 19:34:08 +02:00
parent 562bbc638f
commit 1fdcc24827
7 changed files with 160 additions and 40 deletions

View File

@@ -9,6 +9,14 @@ export default class ListingDetails extends React.Component {
}
onBackClick() {
this.props.dispatch({type: 'UPDATE_ROUTE', action: {
toDispatch: {
type: 'BACK_TO_RESULTS'
},
params: {
listingId: null
}
}});
this.props.dispatch({type: 'BACK_TO_RESULTS'});
}