funcool / bide

A simple routing library for ClojureScript
BSD 2-Clause "Simplified" License
132 stars 20 forks source link

Operation for replacing a URL without modifying history #2

Closed ghost closed 7 years ago

ghost commented 7 years ago

The function for navigating, navigate!, adds a new entry to the history and changes the URL. Would it make sense to have an alternative that doesn't add an entry to the history? Kind of how pushState and replaceState work in the History API.

niwinz commented 7 years ago

:+1: PR is welcome ;)

niwinz commented 7 years ago

It just can be a new function or an additional parameter to navigate!, I don't know that is the better solution