Skip to content

Commit cc9f145

Browse files
committed
[changed] Give path listeners a chance to update state before mounting
1 parent 6af24bd commit cc9f145

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

modules/mixins/PathListener.js

+3
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ var PathListener = {
5050

5151
componentWillMount: function () {
5252
PathStore.setup(this.getLocation());
53+
54+
if (this.updatePath)
55+
this.updatePath(PathStore.getCurrentPath());
5356
},
5457

5558
componentDidMount: function () {

0 commit comments

Comments
 (0)