Skip to content

Commit

Permalink
[changed] Give path listeners a chance to update state before mounting
Browse files Browse the repository at this point in the history
  • Loading branch information
mjackson committed Sep 25, 2014
1 parent 6af24bd commit cc9f145
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/mixins/PathListener.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ var PathListener = {

componentWillMount: function () {
PathStore.setup(this.getLocation());

if (this.updatePath)
this.updatePath(PathStore.getCurrentPath());
},

componentDidMount: function () {
Expand Down

0 comments on commit cc9f145

Please sign in to comment.