Skip to content

Conversation

SteffenDE
Copy link

@SteffenDE SteffenDE commented Feb 13, 2018

As I am also relying on having dynamically added routes and a fallback 404 route, I tried fixing #1862 by checking not only if the matched routes length changed but also if the matched route itself changed:
route.matched[0] === current.matched[0]

Is this a valid way to fix this issue? Or do we have to check if there is more than one matched route?

Closes #1862

@posva posva changed the title Fix for #1862 Navigate when a new route is added while on a wildcard Jun 24, 2020
@posva
Copy link
Member

posva commented Jun 24, 2020

Fixed with #3228

@posva posva closed this Jun 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

using addRoutes() when you already have a wildcard route fails to detect if the CURRENT url matches one of the new routes
2 participants