We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82eeb70 commit d47d7ddCopy full SHA for d47d7dd
1 file changed
modules/components/Routes.js
@@ -151,11 +151,10 @@ function runHooks(hooks, callback) {
151
}
152
153
function updateMatchComponents(matches, refs) {
154
- var i = 0, component;
155
- while (component = refs.__activeRoute__) {
156
- matches[i++].component = component;
157
- refs = component.refs;
158
- }
+ matches.forEach(function (match) {
+ match.component = refs.__activeRoute__;
+ refs = match.component.refs;
+ });
159
160
161
function returnNull() {
0 commit comments