Fork me on GitHub
#reitit
<
2019-02-20
>
Nolan20:02:42

hi, i am having an issue with reitit, specifically reitit.frontend

Nolan20:02:46

basically, when i click an <a> tag, the url in the browser changes, but the view does not change to the view which would be rendered at the new url

Nolan20:02:04

[reitit.frontend :as rf]
[reitit.frontend.easy :as rfe]
...
(defn- start-routing!
  "sets the app's routes and route handler"
  []
  (rfe/start!
   (rf/router [["/"      :home]
               ["/page2" :page2]
               ["/page3" :page3]])
   #(dispatch [:set-active-panel %])
   {:use-fragment false}))

Nolan20:02:24

[reitit.frontend.easy :refer [href]]
...
[:a {:href (href :page2)} "click me"]]

Nolan20:02:14

on second thought, i think this is more likely an issue with re-frame