The only namespace in this library.
The only namespace in this library.
(configure-navigation! {:keys [nav-handler path-exists? reload-same-path?
nav-confirm-handler]})
Create and configure HTML5 history navigation.
nav-handler: a fn of one argument, a path. Called when we've decided to navigate to another page. You'll want to make your app draw the new page here.
path-exists?: a fn of one argument, a path. Return truthy if this path is handled by the SPA
Create and configure HTML5 history navigation. nav-handler: a fn of one argument, a path. Called when we've decided to navigate to another page. You'll want to make your app draw the new page here. path-exists?: a fn of one argument, a path. Return truthy if this path is handled by the SPA
(navigate! route)
(navigate! route query)
add a browser history entry. updates window/location
add a browser history entry. updates window/location
(unconfigure-navigation!)
Teardown HTML5 history navigation.
Undoes all of the stateful changes, including unlistening to events, that are setup as part of
the call to configure-navigation!
.
Teardown HTML5 history navigation. Undoes all of the stateful changes, including unlistening to events, that are setup as part of the call to `configure-navigation!`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close