Mention browser history stack manipulation in docs

This commit is contained in:
Juho Teperi 2019-03-22 08:42:28 +02:00
parent ed7b580c9a
commit 4cd63a4e62

View file

@ -25,3 +25,14 @@ all the calls. Wrapper `reitit.frontend.easy` is provided which manages
a router instance and passes the instance to all calls. This should a router instance and passes the instance to all calls. This should
allow easy use in most applications, as browser anyway can only have single allow easy use in most applications, as browser anyway can only have single
event handler for page change events. event handler for page change events.
## History manipulation
Reitit doesn't include functions to manipulate the history stack, i.e.
go back or forwards, but calling History API functions directly should work:
```
(.go js/window.history -1)
;; or
(.back js/window.history)
```