Fork me on GitHub
#reitit
<
2020-03-02
>
haywood16:03:21

(def routes
  [["/" {:crumbs [{:text    "Home"
                   :href    "/"
                   :onClick (fn [e]
                              (.preventDefault e)
                              (js/console.log "clicked home"))}]}
    ["" {:name :home
         :view #'home/render}]
    ["billing" {:name   :billing
                :view   #'billing/render
                :crumbs [{:text    "Billing"
                          :href    "/billing"
                          :onClick (fn [e]
                                     (.preventDefault e)
                                     (js/console.log "clicked billing"))}]}]]])
Trying to figure out what piece of the incantation I’m missing that makes the home route match… (rff/match-by-path router "/") => nil (rff/match-by-path router "") => nil`

haywood16:03:26

Can anyone help with some spare 👀 /billing matches correctly

haywood16:03:50

uhh, maybe it does work, gas-lit by build cache…

👍 4