(data x)Merges additional data into route data.
Useful for:
Merges additional data into route data. Useful for: - marking if the route is private or public - marking what menu item should be active
(hook! routes cursor route-change)Adds onhashchange hook and calls update-route logic when hash change event happens.
Update-route will call given route-change function. route-change should return a
new route data or a channel which will contain new route data in future. Channel
can return multiple route data maps. This can be used to delay route-change
until e.g. data is loaded.
FIXME: Using cursor/atom is stupid.
Update-route will set the new route data to given cursor using reset!.
Adds `onhashchange` hook and calls update-route logic when hash change event happens. Update-route will call given `route-change` function. `route-change` should return a new route data or a channel which will contain new route data in future. Channel can return multiple route data maps. This can be used to delay route-change until e.g. data is loaded. FIXME: Using cursor/atom is stupid. Update-route will set the new route data to given cursor using `reset!`.
(update-uri! routes k & [params])Warning: this triggers dispatch!
Warning: this triggers dispatch!
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |