From 91487ffc944316778a82bf64d42abdbce65d719b Mon Sep 17 00:00:00 2001 From: Lyubomir Marinov Date: Tue, 31 Jan 2017 22:20:38 -0600 Subject: [PATCH] Fix a case of endless recursion --- react/features/base/react/RouteRegistry.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/react/features/base/react/RouteRegistry.js b/react/features/base/react/RouteRegistry.js index f4e6d0939..86403af97 100644 --- a/react/features/base/react/RouteRegistry.js +++ b/react/features/base/react/RouteRegistry.js @@ -43,9 +43,12 @@ class RouteRegistry { return !a; } + const aKeys = Object.keys(a); + const bKeys = Object.keys(b); + return ( - Object.keys(a).every(key => a[key] === b[key]) - && /* symmetric */ this.areRoutesEqual(b, a)); + aKeys.length === bKeys.length /* symmetric */ + && aKeys.every(key => a[key] === b[key])); } /**