 
   (_handle-change [this sender oldval newval]
     (when-not (identical? oldval newval)
-      (if *flushing*
+      (if-not (nil? *ratom-context*)
         (if-not (nil? auto-run)
           (auto-run this)
           (when-not dirty?

(defn flush! []
  (when-some [q rea-queue]
    (set! rea-queue nil)
    (binding [*flushing* true]
      (run-queue q))))


;;; Atom

;;; Queueing

(defonce rea-queue nil)
(def empty-context #js{})

(defn- rea-enqueue [r]
  (when (nil? rea-queue)
