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 074b589 commit ea8ba37Copy full SHA for ea8ba37
packages/angular/src/lib/legacy/router/ns-route-reuse-strategy.ts
@@ -133,7 +133,7 @@ export class NSRouteReuseStrategy implements RouteReuseStrategy {
133
134
const key = getSnapshotKey(route);
135
const isBack = outlet ? outlet.isPageNavigationBack : false;
136
- const shouldAttach = isBack && cache.peek().key === key;
+ const shouldAttach = isBack && cache.peek()?.key === key;
137
138
if (NativeScriptDebug.isLogEnabled()) {
139
NativeScriptDebug.routeReuseStrategyLog(`shouldAttach isBack: ${isBack} key: ${key} result: ${shouldAttach}`);
0 commit comments