   :initialise-db                  ;; event id being handled
   check-schema                    ;; middleware
   (fn  [_ _]                      ;; the handler
-    default-value))               ;; all hail the new state
+    (merge default-value
+           (get-local-storage))))    ;; all hail the new state
 
 
-(register-pure-handler            ;; disptached to when user changes the bottom filter
+(register-pure-handler            ;; handlers changes the footer filter
   :set-showing                    ;; event-id
   [check-schema debug trim-v]     ;; middleware  (wraps the handler)
   (fn                             ;; handler



;; -- Middleware --------------------------------------------------------------
;; To be used for handlers operating solely on todos
;;
(def check-schema (after valid-schema?))
(def todo-middleware [check-schema (path [:todos])  debug  trim-v])



(ns todomvc.handlers
  (:require
    [todomvc.db    :refer [default-value valid-schema? get-local-storage]]
    [re-frame.core :refer [register-pure-handler
                           path after
                           trim-v
