From 3bf93d81fb3208df03f72169b44779ff93d40471 Mon Sep 17 00:00:00 2001 From: Daniel Compton Date: Mon, 12 Feb 2018 07:16:41 +1300 Subject: [PATCH] Temp --- src/day8/re_frame/trace/preload.cljs | 11 +++++++---- src/day8/re_frame/trace/subs.cljs | 6 ++++-- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/src/day8/re_frame/trace/preload.cljs b/src/day8/re_frame/trace/preload.cljs index 68d37d9..979e101 100644 --- a/src/day8/re_frame/trace/preload.cljs +++ b/src/day8/re_frame/trace/preload.cljs @@ -5,7 +5,10 @@ ;; Use this namespace with the :preloads compiler option to perform the necessary setup for enabling tracing: ;; {:compiler {:preloads [day8.re-frame.trace.preload] ...}} -(rf/clear-subscription-cache!) -(trace/init-db!) -(defonce _ (trace/init-tracing!)) -(trace/inject-devtools!) + +(defonce _ + (do + (rf/clear-subscription-cache!) + (trace/init-db!) + (defonce _ (trace/init-tracing!)) + (trace/inject-devtools!))) diff --git a/src/day8/re_frame/trace/subs.cljs b/src/day8/re_frame/trace/subs.cljs index a8c3806..3059535 100644 --- a/src/day8/re_frame/trace/subs.cljs +++ b/src/day8/re_frame/trace/subs.cljs @@ -474,11 +474,13 @@ (assoc sub :previous-value (:previous-value state)) sub)] sub))) - (sort-by :order sub-sort-val) ;; Also sort by subscription-id - #_(sort-by :path))] + #_(sort-by :order sub-sort-val) ;; Also sort by subscription-id + (sort-by :path))] subx)) + + (rf/reg-sub :subs/pre-epoch-state :<- [:subs/current-epoch-sub-state]