From 0dd14a00d40ddb3426f2222e57f141c30a273238 Mon Sep 17 00:00:00 2001 From: Miguel Ángel Moreno Date: Tue, 20 Dec 2022 00:45:34 +0100 Subject: feat: Add frontend entry point --- src/frontend/tau/core.cljs | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) (limited to 'src/frontend') 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)) -- cgit v1.2.3