mirror of
https://github.com/status-im/re-frame-10x.git
synced 2025-02-04 10:23:39 +00:00
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:
parent
744c48b9d6
commit
0807a6156f
@ -120,7 +120,7 @@
|
|||||||
(let [rendering? (= (:op-type trace) :render)]
|
(let [rendering? (= (:op-type trace) :render)]
|
||||||
(if-not rendering?
|
(if-not rendering?
|
||||||
true
|
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])]
|
#_(if-let [comp-p (get-in trace [:tags :component-path])]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user