reitit

https://cljdoc.org/d/metosin/reitit/ https://github.com/metosin/reitit/
andrewboltachev 2020-07-26T10:01:34.364500Z

Hello! I'm converting quite decent CLJS application to reitit I made a script which converts my existing routing table into reitit format but when I've passed it to rfe/start! I'm getting

No protocol method Router.match-by-path defined for type cljs.core/PersistentVector

andrewboltachev 2020-07-26T10:09:09.364700Z

e.g. this:

andrewboltachev 2020-07-26T10:09:11.365100Z

(rfe/start!                                                                                            
    ["/hello" ::hello1]
    (fn [new-match]
      (js/console.log "new-match!!!" new-match))                                                         
    {})                                                                                                  

andrewboltachev 2020-07-26T10:16:43.365900Z

so found out that it should be in fact like (rf/router routes) , not just routes passed to rfe/start!

andrewboltachev 2020-07-26T10:16:52.366200Z

so does that mean that here: https://metosin.github.io/reitit/frontend/controllers.html

andrewboltachev 2020-07-26T10:17:24.366900Z

(def routes
  ["/" ...])
should rather be
(def routes
  (rf/routes ["/" ...]))
?