Fork me on GitHub
Faisal Hasnain09:08:54

Im using reitit-frontend for routing in re-frame app. I am getting nil in controller parameters. I think something is messed up in applying controllers logic

{:start (fn [params] (println params))}

Faisal Hasnain09:08:53

Am i missing anything?

Faisal Hasnain10:08:41

never mind, i have to declare parameters in controller:

{:parameters {:path [:tab]} start: (fn [params] (println params))}


Or you could use the :identity key.. Look at this excerpt from the docs:

A controller map can contain these properties:
* identity function which takes a Match and returns an arbitrary value,
* or parameters value, which declares which parameters should affect controller identity