 ;;
 (register
   :dispatch-later
-  (fn [effects-v]
-    (doseq  [{:keys [ms dispatch] :as effect} effects-v]
+  (fn [value]
+    (doseq  [{:keys [ms dispatch] :as effect} value]
         (if (or (empty? dispatch) (-> ms number? not))
           (console :error "re-frame: ignoring bad :dispatch-later value: " effect)
           (set-timeout! #(router/dispatch dispatch) ms)))))


(register
  :dispatch
  (fn [val]
    (if-not (vector? val)
      (console :error "re-frame: ignoring bad :dispatch value. Expected a vector, but got: " val)
      (router/dispatch val))))


;; :dispatch-n

;; -- Interceptor -------------------------------------------------------------

(def do-effects
  "An interceptor which actions a `context's` (side) `:effects`.

  For each key in the `:effects` map, call the `effects handler` previously
  registered using `reg-fx`.

  So, if `:effects` was:
      {:dispatch  [:hello 42]
