Liking cljdoc? Tell your friends :D

reacl-basics.pages.router


dispatch-viewcljs

(dispatch-view pages id & args)
source

gotocljs

(goto path)

Returns an action to be handled by a history-router up in the hierarchy, instructing it to show the page registered for the given path (and query string).

Returns an action to be handled by a [[history-router]] up in the
hierarchy, instructing it to show the page registered for the given
`path` (and query string).
sourceraw docstring

history-routercljs

(history-router history pages)

A class that dispatches rendering based on the given map of routes to pages, where the current route and route changes are managed by the given implementation of the reacl-basics.pages.history/History protocol.

A class that dispatches rendering based on the
given map of routes to pages, where the current route and route
changes are managed by the given implementation of
the [[reacl-basics.pages.history/History]] protocol.
sourceraw docstring

routercljs

(router router-state-lens page-state-lens pages)

A class that dispatches rendering based on the given map of id to pages, where a value [id args] should be in the app-state under router-state-lens, and the pages are instantited over the same part of the app-state under page-state-lens. First argument to the page is always this router.

A class that dispatches rendering based on the
given map of id to pages, where a value `[id args]` should be in the
app-state under `router-state-lens`, and the pages are instantited
over the same part of the app-state under `page-state-lens`. First
argument to the page is always this router.
sourceraw docstring

showcljs

(show id & args)

Returns a message to be to be sent to a router, instructing it to show the page registered for the given id and additional args.

Returns a message to be to be sent to a [[router]], instructing it
to show the page registered for the given `id` and additional
`args`.
sourceraw docstring

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

× close