          (atom
            {:pokemon []
             :user {:view :default
-                   :logged-in? false}}))
+                   :logged-in? false}
+            :error {:message nil}}))
 
 
 ;;;; React compatibility

  [key]
  (om/transact! reconciler `[(change/view {:view ~key})]))

;;;; State transitions
(defn update-pokemon!
  "Update pokemon based on API response."

  [{:keys [state]} _ {:keys [view]}]
  {:action (fn [] (swap! state update-in [:user :view] (fn [] view)))})

(defmethod mutate 'update/error
    [{:keys [state]} _ {:keys [message]}]
    {:action (fn [] (swap! state update-in [:error :message] (fn [] message)))})

(defonce reconciler
         (om/reconciler
