This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-07-26
Channels
- # announcements (6)
- # beginners (69)
- # calva (10)
- # clj-kondo (9)
- # clojure (32)
- # clojure-uk (9)
- # clojuredesign-podcast (13)
- # clojurescript (14)
- # clojureverse-ops (2)
- # conjure (24)
- # cursive (12)
- # data-science (1)
- # datomic (13)
- # graalvm (5)
- # jobs-discuss (4)
- # malli (6)
- # meander (33)
- # off-topic (9)
- # pedestal (2)
- # re-frame (38)
- # reitit (6)
- # rum (4)
- # shadow-cljs (6)
- # tools-deps (8)
- # xtdb (26)
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 ["/" ...]))
?