From feccbcce721f2e62e9ceef153117c16f8e900b4e Mon Sep 17 00:00:00 2001 From: kagel Date: Sun, 2 Oct 2016 18:06:12 +0300 Subject: [PATCH] Refresh data every minute, please --- src/cljs/commiteth/core.cljs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/cljs/commiteth/core.cljs b/src/cljs/commiteth/core.cljs index 9b5ae29..6916604 100644 --- a/src/cljs/commiteth/core.cljs +++ b/src/cljs/commiteth/core.cljs @@ -156,10 +156,15 @@ (defn load-issues [] (rf/dispatch [:load-bounties])) +(defn load-data [] + (load-issues) + (load-user)) + +(js/setInterval load-data 60000) + (defn init! [] (rf/dispatch-sync [:initialize-db]) (load-interceptors!) (hook-browser-navigation!) - (load-issues) - (load-user) + (load-data) (mount-components))