Fork me on GitHub
#reitit
<
2020-07-26
>
andrewboltachev10:07:34

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

andrewboltachev10:07:11

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

andrewboltachev10:07:43

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

andrewboltachev10:07:24

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