Skip to content

Ordering dynamically added routes? #96

@smitch88

Description

@smitch88

Situation:
I have initial routes set up on app load. I add some additional routes dynamically based on a configuration using add-route!. I noticed that since I defined a catch-all in the initial routes, namely /*, that this gets matched on before any of the dynamically added routes. I assume this is because the vector of routes is in insertion order?

Is there a way to handle dynamic ordering in the library that I'm not seeing? Or do I need to manipulate the *routes* directly for now?

Metadata

Metadata

Assignees

No one assigned

    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