Fork me on GitHub
#reitit
<
2021-06-02
>
az21:06:11

Hi all, question on the frontend. I’m wondering if anyone has any tips for getting hot reloading working when using reitit routes to indicate which view to use on a route. I see this pattern in several repos. (This stashes in re-frame db on nav change)

(def routes
  ["/"
   [""
    {:name      ::home
     :view      home/view
     :link-text "Home"}]])
I’m having an issue though when I update the view markup, it doesn’t reload unless I hard refresh. I’m assuming because the object is stashed in the state atom. I’ve tried using a backtick instead, but not sure how to get that to render in hiccup. I know this isn’t a reitit issue directly, but thought I would ask here. Thanks

az21:06:50

Think I found it, just needed #'home/page

Stef Coetzee20:06:43

Happened upon this today, thanks for sharing!