In Elm 0.18, we have the elm-lang/navigation package.
In my current Elm-app, I’ve used the setup explained in elm-navigation-example to use the Navigation package to handle routing.
However, upgrading this to the 0.19 approach is not straightforward, so now I have some questions:
- The
Navigation.Locationtype is gone, what to use instead? Browser has bothKeyandUrlRequest, so I don’t think there is a 1:1 mapping. - I used to parse the URL using the
UrlParserthat the package exposed, but this module no longer exists. What to use instead? - Before, my
Main.mainimplementation was aNavigation.program. Do I now useBrowser.applicationor something else?
Help is greatly appreciated!