Skip to content

Commit

Permalink
Merge pull request roman01la#54 from den1k/fix-devtools-check
Browse files Browse the repository at this point in the history
Fix devtools check
  • Loading branch information
roman01la authored May 6, 2020
2 parents 80c4b9d + 3e82bd2 commit 32238d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/xframe/core/alpha.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
db +====> A +====> B +====> [B]
+
+---> C +---> D
Alternatives:
- https://github.com/salsa-rs/salsa"
#?(:cljs (:require-macros [xframe.core.alpha :refer [reg-sub]]))
Expand Down Expand Up @@ -124,7 +124,7 @@
~get-state-sym #(<- ~s-sym k#)]
~(if (uix.lib/cljs-env? &env)
`(if ~(with-meta 'goog.DEBUG {:tag 'boolean})
(if (and ~'js/__REACT_DEVTOOLS_GLOBAL_HOOK__
(if (and ~'(exists? js/__REACT_DEVTOOLS_GLOBAL_HOOK__)
(-> (.. ~'js/__REACT_DEVTOOLS_GLOBAL_HOOK__ -renderers) (.get 1) .getCurrentFiber))
~ret
(~get-state-sym))
Expand Down

0 comments on commit 32238d6

Please sign in to comment.