Fix a case of endless recursion
This commit is contained in:
parent
7a57dcc08a
commit
91487ffc94
|
@ -43,9 +43,12 @@ class RouteRegistry {
|
||||||
return !a;
|
return !a;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const aKeys = Object.keys(a);
|
||||||
|
const bKeys = Object.keys(b);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
Object.keys(a).every(key => a[key] === b[key])
|
aKeys.length === bKeys.length /* symmetric */
|
||||||
&& /* symmetric */ this.areRoutesEqual(b, a));
|
&& aKeys.every(key => a[key] === b[key]));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue