This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-05-27
Channels
- # announcements (2)
- # beginners (85)
- # boot (4)
- # calva (4)
- # cider (14)
- # cljdoc (8)
- # cljs-dev (5)
- # cljsrn (10)
- # clojure (101)
- # clojure-europe (1)
- # clojure-italy (6)
- # clojure-nl (12)
- # clojure-spec (4)
- # clojure-uk (71)
- # clojurescript (119)
- # core-async (20)
- # cursive (1)
- # datascript (2)
- # duct (3)
- # emacs (19)
- # fulcro (150)
- # graphql (1)
- # hoplon (2)
- # instaparse (2)
- # jobs (1)
- # jobs-discuss (11)
- # joker (9)
- # luminus (6)
- # lumo (1)
- # off-topic (33)
- # onyx (1)
- # quil (1)
- # re-frame (23)
- # reagent (11)
- # robots (2)
- # rum (6)
- # sql (1)
- # test-check (10)
- # unrepl (1)
With Luminus, Re-frame and Reitit, let's say that when I go to a route I want to fire a couple of events. Are there any examples of how to do that?
@jarvinenemil here’s an example of using reitit controllers just for that: https://github.com/metosin/reitit/blob/master/examples/frontend-re-frame/src/cljs/frontend_re_frame/core.cljs.
there is also https://github.com/ingesolvoll/kee-frame which has controllers, bit different. Original pattern from Keechma 🙇
controllers are statefull, entering a route will call :start
of all registered controllers, navigating away calls :stop
. there is tracking of the loaded controllers in app state, so only effective diff between route controllers is applied.
Thanks for the guidance @ikitommi!