From cc9f145ae162483b69029c5989ef084780f711e6 Mon Sep 17 00:00:00 2001 From: Michael Jackson Date: Wed, 24 Sep 2014 23:27:14 -0700 Subject: [PATCH] [changed] Give path listeners a chance to update state before mounting --- modules/mixins/PathListener.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/mixins/PathListener.js b/modules/mixins/PathListener.js index f22220f7ab..3446065927 100644 --- a/modules/mixins/PathListener.js +++ b/modules/mixins/PathListener.js @@ -50,6 +50,9 @@ var PathListener = { componentWillMount: function () { PathStore.setup(this.getLocation()); + + if (this.updatePath) + this.updatePath(PathStore.getCurrentPath()); }, componentDidMount: function () {