Liking cljdoc? Tell your friends :D

com.yetanalytics.re-route

API for preventable navigation using reitit routes.

API for preventable navigation using reitit routes.
raw docstring

add-controllerscljs

(add-controllers [path {:keys [name parameters controllers] :as route-data}])

Given a [path route-data] pair, add controllers if :controllers does not exist. Returns the pair with :controllers assoc'd to the route-data map, consisting of a single pair of start and stop controllers that dispatch ::on-start and ::on-stop, respectively.

NOTE: Skips assoc'ing controllers if on-start/on-stop multimethods were not registered for the route name, and skips adding :controllers entirely if both are not registered.

Given a `[path route-data]` pair, add controllers if `:controllers`
does not exist. Returns the pair with `:controllers` assoc'd to the
`route-data` map, consisting of a single pair of start and stop controllers
that dispatch `::on-start` and `::on-stop`, respectively.

NOTE: Skips assoc'ing controllers if `on-start`/`on-stop` multimethods were
not registered for the route `name`, and skips adding `:controllers`
entirely if both are not registered.
sourceraw docstring

default-prevent-nav-optscljs

source

default-prevent-nav-textcljs

source

on-startcljsmultimethod

Multimethod that is called when the ::on-start effect is dispatched. Dispatches on route-name to perform re-frame effects when entering that specific route. The method must be compatible with reg-event-fx and return a map of :db and/or :fx. Will error on unregistered route-name.

Multimethod that is called when the `::on-start` effect is dispatched.
Dispatches on `route-name` to perform re-frame effects when entering that
specific route. The method must be compatible with `reg-event-fx` and
return a map of `:db` and/or `:fx`. Will error on unregistered `route-name`.
sourceraw docstring

on-stopcljsmultimethod

Multimethod that is called when the ::on-stop effect is dispatched. Dispatches on route-name to perform re-frame effects when entering that specific route. The method must be compatible with reg-event-fx and return a map of :db and/or :fx. Will error on unregistered route-name.

Multimethod that is called when the `::on-stop` effect is dispatched.
Dispatches on `route-name` to perform re-frame effects when entering that
specific route. The method must be compatible with `reg-event-fx` and
return a map of `:db` and/or `:fx`. Will error on unregistered `route-name`.
sourceraw docstring

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

× close