diff options
Diffstat (limited to 'src/frontend')
-rw-r--r-- | src/frontend/tau/core.cljs | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/src/frontend/tau/core.cljs b/src/frontend/tau/core.cljs index e2417cc..3cad0ba 100644 --- a/src/frontend/tau/core.cljs +++ b/src/frontend/tau/core.cljs @@ -1,4 +1,22 @@ -(ns tau.core) +(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 mount-app - []) +(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)) |