Skip to content

Please improve the README for multi-paramter routing #66

Open
@PenguinAndy

Description

@PenguinAndy

In the README, it mentions that you can pass multiple parameters in the route using colons (:), but there are no examples provided for implementation. After multiple attempts, I found the implementation works as follows:

  • Declare the route:
Route("test/:paramA/:paramB") { route in 
    // todo - 
}
  • Use it as follows:
NavLink(to: "test/aaa/bbb") { 
    // todo -
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions