Skip to content

Commit

Permalink
Fix at macro
Browse files Browse the repository at this point in the history
  • Loading branch information
superstructor committed Feb 24, 2021
1 parent fa99444 commit 9eb22d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/re_com/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@
;; See explanation: https://re-com.day8.com.au/#/debug
(defmacro at
[]
(select-keys (meta &form) [:file :line]))
`(if-not ~(vary-meta 'js/goog.DEBUG assoc :tag 'boolean)
nil
~(select-keys (meta &form) [:file :line])))

;; Obtain the current component's component-name and args to be provided as a :debug-as argument to another component.
;; Causes the other component to masquerade in debug output, such as component stacks, as the current component in terms
Expand Down

0 comments on commit 9eb22d3

Please sign in to comment.