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.
This commit is contained in:
Matt Huebert 2017-10-31 18:43:20 +01:00 committed by Daniel Compton
parent 744c48b9d6
commit 0807a6156f
1 changed files with 1 additions and 1 deletions

View File

@ -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])]