           (assoc db :key "")))))
 
 
-(register-handler
-  :inc-attempts
-  (path [:attempts])
-  (fn
-    [attempts [_]]
-    (.log js/console (str "inc-attempts handler:"  attempts))
-    (inc attempts))) ;; return the new version of db
 
 ;; -- Subscription Handlers ---------------------------------------------------
 

 :attempts
 (fn
   [db _]
   (reaction (:attempts @db))))


(register-sub

(defonce time-updater (js/setInterval
                        #(dispatch [:timer (js/Date.)]) 1000))


(def initial-state
  {:word "portatil"
   :key ""
   :guessed-letters #{}
   :failed-letters #{}})
