aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/tau/core.cljs
blob: 3cad0ba4822c95e050e6716572cd0927bc560b60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
(ns tau.core
  (:require
   [day8.re-frame.http-fx]
   [reagent.dom :as rdom]
   [re-frame.core :as rf]
   [tau.events]
   [tau.routes :as routes]
   [tau.subs]
   [tau.views :as views]))

(defn ^:dev/after-load mount-root
  []
  (rf/clear-subscription-cache!)
  (rdom/render
   [views/app]
   (.querySelector js/document "#app")))

(defn ^:export init
  []
  (routes/start-routes!)
  (rf/dispatch-sync [:initialize-db])
  (mount-root))