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]