mirror of https://github.com/status-im/reagent.git
Remove obsolete code path
This commit is contained in:
parent
cd44e87519
commit
c5497ea02e
|
@ -187,6 +187,7 @@
|
||||||
(def cached-wrapper (util/memoize-1 get-wrapper))
|
(def cached-wrapper (util/memoize-1 get-wrapper))
|
||||||
|
|
||||||
(defn fn-to-class [f]
|
(defn fn-to-class [f]
|
||||||
|
(assert (ifn? f) (str "Expected a function, not " (pr-str f)))
|
||||||
(let [spec (meta f)
|
(let [spec (meta f)
|
||||||
withrender (assoc spec :component-function f)
|
withrender (assoc spec :component-function f)
|
||||||
res (comp/create-class withrender)
|
res (comp/create-class withrender)
|
||||||
|
@ -200,9 +201,7 @@
|
||||||
(let [cached-class (util/cached-react-class tag)]
|
(let [cached-class (util/cached-react-class tag)]
|
||||||
(if-not (nil? cached-class)
|
(if-not (nil? cached-class)
|
||||||
cached-class
|
cached-class
|
||||||
(if (.' js/React isValidElement tag)
|
(fn-to-class tag)))))
|
||||||
(util/cache-react-class tag (wrap-component tag nil nil))
|
|
||||||
(fn-to-class tag))))))
|
|
||||||
|
|
||||||
(def cached-parse (util/memoize-1 parse-tag))
|
(def cached-parse (util/memoize-1 parse-tag))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue