From 0807a6156fbe92c1136aa1c3c44cd5abc99ee37e Mon Sep 17 00:00:00 2001 From: Matt Huebert Date: Tue, 31 Oct 2017 18:43:20 +0100 Subject: [PATCH] Detect re-frame-trace views via 'devtools outer' This is more reliable than looking for the namespace, as reagent does not attempt to keep namespace information when compiled with Closure, whereas "devtools outer" is hard-coded as the :display-name for the panel's container and survives compilation/optimization. --- src/day8/re_frame/trace.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/day8/re_frame/trace.cljs b/src/day8/re_frame/trace.cljs index 94ca97a..54c7dc9 100644 --- a/src/day8/re_frame/trace.cljs +++ b/src/day8/re_frame/trace.cljs @@ -120,7 +120,7 @@ (let [rendering? (= (:op-type trace) :render)] (if-not rendering? true - (not (str/includes? (get-in trace [:tags :component-path] "") "day8.re_frame.trace"))) + (not (str/includes? (get-in trace [:tags :component-path] "") "devtools outer"))) #_(if-let [comp-p (get-in trace [:tags :component-path])]