 (re-frame/register-handler
   :process-teas-response
   (fn [app-db [_ response]]
+    (println response)
     (assoc-in app-db [:teas-list] response)))
 
 (re-frame/register-handler

                                                                                  (reset! edit-tea-snap nil))}]]
       [:input.btn.btn-danger {:type "button" :value (str "Delete " @edit-tea-snap) :on-click #(delete-tea @edit-tea)}]]]]))

;; this passes the value of the new tea atom into the post-to-teas-db function

(defn list-page []

  (let [teas (re-frame/subscribe [:teas])]
    (fn []
      [:div.row
        [:table.table.table-striped
          [:thead
            [:tr
              [:th "Tea Name"]]]
          [:tbody
            (map (fn [tea]
                    ^{:key tea}
                    [:tr
                      [:td.pull-left (:name tea)]
                      [:td [:input.btn.btn-success {:type "button" :value "Edit" :on-click (fn [_] (update-edit-form (:id tea) (:name tea)))}]]])
              @teas)]]])))

(defn sync-atom-to-event
  [the-atom target-value]
