Zaid-Ajaj / Feliz.Router

A router component for React and Elmish that is focused, powerful and extremely easy to use.
MIT License
78 stars 16 forks source link

Navigation based on History? #39

Closed 7sharp9 closed 3 years ago

7sharp9 commented 3 years ago

Within Elm Navigation Package it pretty easy to navigate though history using Navigate.back n.

Is there anything similar in Feliz.Router?

7sharp9 commented 3 years ago

Maybe a alias to Browser.Dom.history.back () would make sense as Router.navigateBack()

Zaid-Ajaj commented 3 years ago

Should be pretty easy to implement. I'll add it soon. For now, the workaround of using main Browser.Dom.history.back () should work just fine

Zaid-Ajaj commented 3 years ago

@7sharp9 Why close the issue? Haven't implemented the alias yet 😅

Zaid-Ajaj commented 3 years ago

Added Router.navigateBack() and Router.navigateForward() as of latest v3.8