Skip to content

Commit 760f021

Browse files
genbitryanflorence
authored andcommitted
[fixed] infinite loop in RouteStore.unregisterRoute
closes #148
1 parent 5df5441 commit 760f021

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/stores/RouteStore.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ var RouteStore = {
3030
delete _namedRoutes[route.props.name];
3131

3232
React.Children.forEach(route.props.children, function (child) {
33-
RouteStore.unregisterRoute(route);
33+
RouteStore.unregisterRoute(child);
3434
});
3535
},
3636

0 commit comments

Comments
 (0)