Liking cljdoc? Tell your friends :D
ClojureScript only.

reacl-basics.pages.history


Historycljsprotocol

start!cljs

(start! this nav-path! path-exists?)

Start listening to history events, calling (nav-path! path) when the top of the stack changes and (path-exists? path) returns truthy.

Start listening to history events, calling `(nav-path! path)` when the top of the stack changes and `(path-exists? path)` returns truthy.

get-currentcljs

(get-current this)

Return the path currently on the top of the history stack.

Return the path currently on the top of the history stack.

push!cljs

(push! this path)

Push a new path on the history stack, NOT triggering the nav-path! callback.

Push a new path on the history stack, NOT triggering the `nav-path!` callback.

stop!cljs

(stop! this)

Stop listening to history events.

Stop listening to history events.
source

html5-historycljs

(html5-history)

Returns an implementation of the History protocol using the Html5 History API, resp. venantius/accountant.

Returns an implementation of the [[History]] protocol using the Html5 History API, resp. `venantius/accountant`.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close