mirror of
https://github.com/metosin/reitit.git
synced 2025-12-17 16:31:11 +00:00
Mention browser history stack manipulation in docs
This commit is contained in:
parent
ed7b580c9a
commit
4cd63a4e62
1 changed files with 11 additions and 0 deletions
|
|
@ -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)
|
||||||
|
```
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue