diff options
author | Miguel Ángel Moreno <mail@migalmoreno.com> | 2022-12-26 22:02:33 +0100 |
---|---|---|
committer | Miguel Ángel Moreno <mail@migalmoreno.com> | 2022-12-26 22:02:33 +0100 |
commit | b5404ac06a3a09d83bef66552083254fdff12196 (patch) | |
tree | 02785ab11a3dcf328e8d1375a7b76abb2edbf382 /src/frontend/tau/core.cljs | |
parent | dce9e36b352509665887ea1ca2e6f81904038a11 (diff) |
feat(frontend): Modularize components and add pagination
Diffstat (limited to 'src/frontend/tau/core.cljs')
-rw-r--r-- | src/frontend/tau/core.cljs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/frontend/tau/core.cljs b/src/frontend/tau/core.cljs index 3cad0ba..ab538f3 100644 --- a/src/frontend/tau/core.cljs +++ b/src/frontend/tau/core.cljs @@ -1,9 +1,8 @@ (ns tau.core (:require - [day8.re-frame.http-fx] [reagent.dom :as rdom] [re-frame.core :as rf] - [tau.events] + [tau.events :as events] [tau.routes :as routes] [tau.subs] [tau.views :as views])) @@ -11,12 +10,12 @@ (defn ^:dev/after-load mount-root [] (rf/clear-subscription-cache!) + (routes/start-routes!) (rdom/render [views/app] (.querySelector js/document "#app"))) (defn ^:export init [] - (routes/start-routes!) - (rf/dispatch-sync [:initialize-db]) + (rf/dispatch-sync [::events/initialize-db]) (mount-root)) |