File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -366,9 +366,21 @@ const cleanUp = (page, request) => {
366
366
367
367
let doCleanup = false
368
368
369
+ // if this request is executed due to a step back in history
370
+ // and we have configured to destroy active page when we go back
371
+ // in history or lazyDestory is enabled
369
372
if ( isFromHistory && ( destroyOnBack || lazyDestroy ) ) {
370
373
doCleanup = true
371
- } else if ( lazyDestroy && ! keepAlive ) {
374
+ }
375
+
376
+ // clean up if lazyDestroy is enabled and the keepAlive flag
377
+ // in navigation register is false
378
+ if ( lazyDestroy && ! keepAlive ) {
379
+ doCleanup = true
380
+ }
381
+
382
+ // if the current and new request share the same route blueprint
383
+ if ( activeRoute === request . route . path ) {
372
384
doCleanup = true
373
385
}
374
386
You can’t perform that action at this time.
0 commit comments