From b5404ac06a3a09d83bef66552083254fdff12196 Mon Sep 17 00:00:00 2001 From: Miguel Ángel Moreno Date: Mon, 26 Dec 2022 22:02:33 +0100 Subject: feat(frontend): Modularize components and add pagination --- src/frontend/tau/core.cljs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/frontend/tau/core.cljs') 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)) -- cgit v1.2.3