 
   (_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?


  IDeref
  (-deref [this]
    (when-not (or *flushing* (not (nil? *ratom-context*)))
      (flush!))
    (if-not (and (nil? auto-run) (nil? *ratom-context*))
      (do

;;; Queueing

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

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