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.
#kee-frame & #reitit has usually people to help on those.
Thanks for the guidance @ikitommi!