                                  :to_delete (:to_delete status)
                                  :deleted   (:deleted status)})))})
 
+(defmethod mutate 'status/niantic
+  [{:keys [state]} _ {:keys [status]}]
+  {:action (fn [] (swap! state update-in [:connected?] (fn [] status)))})
+
 (defmethod mutate 'toggle/progress
   [{:keys [state]} _ {:keys [status]}]
   {:action (fn [] (swap! state update-in [:progress-running?] (fn [] status)))})

  (when (string? str)
    (= "true" str)))

;;;; Helpers
(defn pokemon-evolution
  [pokemon]

(ns cruncher.utils.lib
  (:require [om.next :as om :refer-macros [defui]]
            [cljs.core.async :refer [chan close!]]
            [cruncher.data.pokemon :as pokemon]))

(defonce app-state
