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
e.g. this:
(rfe/start!
["/hello" ::hello1]
(fn [new-match]
(js/console.log "new-match!!!" new-match))
{})
so found out that it should be in fact like (rf/router routes)
, not just routes
passed to rfe/start!
so does that mean that here: https://metosin.github.io/reitit/frontend/controllers.html
(def routes
["/" ...])
should rather be
(def routes
(rf/routes ["/" ...]))
?