fix for Use of undeclared Var re-frame.core/subscribe

This commit is contained in:
Roman Volosovskyi 2017-10-11 08:53:11 +02:00
parent c7893ebd17
commit 11f410f3af

View File

@ -48,7 +48,10 @@
2 [(first rest-body') {} (second rest-body')]
3 rest-body')
[subs-bindings vars-bindings] (prepare-subs subs)]
`(defn ~n ~params
`(do
(when-not (find-ns 're-frame.core)
(require 're-frame.core))
(defn ~n ~params
(let [~@subs-bindings]
(reagent.core/create-class
(merge ~(->> component-map
@ -62,4 +65,4 @@
:reagent-render
(fn ~params
(let [~@vars-bindings]
~body))}))))))
~body))})))))))