Problem with Aurelia Router

When navigating between views in my Aurelia app, the previous view doesn’t vanish immediately. Instead, it lingers for a couple of seconds before finally disappearing, while the new view gets appended underneath it.

The relevant doc is at https://docs.aurelia.io/getting-to-know-aurelia/routing/aurelia-router/getting-started#configuring-the-route-swap-order

By default, it’ll attach the incoming view before removing the existing one, you can change to other strategy to match your requirement.

1 Like