              (this-as this
                (vswap! (state this) call-all will-mount))))
          :componentDidMount
-         (when-not (empty? did-mount)
-           (fn []
-             (this-as this
+         (fn []
+           (this-as this
+             (gobj/set this ":rum/mounted?" true)
+             (when-not (empty? did-mount)
                (vswap! (state this) call-all did-mount))))
          :componentWillReceiveProps
          (fn [next-props]

             (this-as this
               (vswap! (state this) call-all did-update))))
         :componentWillUnmount
         (when-not (empty? will-unmount)
           (fn []
             (this-as this
               (vswap! (state this) call-all will-unmount))))
         :getChildContext
         (when-not (empty? child-context)
           (fn []



(defn- render-all [queue]
  (doseq [comp queue
          :when (gobj/get comp ":rum/mounted?")]
    (.forceUpdate comp)))


