 ;; Lifecycle method handling
 
 (defn expand-props [this props]
-  (cond-> props
-          (.-expandProps this) ((.-expandProps this) props)))
+  (cond->> props
+           (js-get this "expandProps") (js-call this "expandProps")))
 
 (defn initial-subscription-data
   "If component has specified subscriptions, initialize them"

(defn react-ref
  "Returns the component associated with a component's React ref."
  [component name]
  (some-> (.-refs component) (gobj/get name)))




     (fn [props]

       (this-as this
         (let [{prev-props :props prev-children :children} (d/entity @db this)
               next-props (expand-props this (js-get props "cljs$props"))
               next-children (js-get props "cljs$children")]

           (d/transact! db [{:id            this
                             :prev-props    prev-props
                             :props         next-props
                             :view-id       (or (:view-id next-props) (:id next-props))
                             :prev-children prev-children
                             :children      next-children}])

           (binding [*trigger-state-render* false
                     *use-prior-props* true]
