Skip to content

Router: Support keepAlive for multiple instances of the same dynamic route #414

@ChrisArasin

Description

@ChrisArasin

I have a show/entity page that links to related shows. They both use the dynamic route entity/:entityId.
I want to preserve the scrolled position on the first show page when when clicking through to the second show page and then back pressing to the original page by using keepAlive.

However, the Router does not seem to allow preserving multiple instances of the same route, as cleanup is forced if the same route template is detected.

// if the current and new request share the same route blueprint
if (activeRoute === request.route.path) {
doCleanup = true
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions