  (fn [db]
    (reaction (:order-prop @db))))
 
-(re-frame/register-handler
+<<<<<<< HEAD
+(re-frame/register-handler
+=======
+(re-frame/register-subs
+:phone-query
+(fn [db [_ phone-id]]
+  (let [phone-details-reaction (reaction (:phone-details @db))]
+    (reaction ((fn []
+                 ((keyword phone-id) @phone-details-reaction)))))))
+
+
+(re-frame/register-pure-handler
+>>>>>>> dff3fe5... add back handlers for loading individual phone data
  :process-phones-response
  (fn
    [app-state [_ response]]

                   :keywords? true})
   app-state))

(re-frame/register-handler
 :initialise-db             ;; usage: (dispatch [:initialise-db])
 (fn
   [_ _]                   ;; Ignore both params (db and v).
   {:phones []
    :search-input ""
    :order-prop "name"}))

(defn handle-search-input-entered
  [app-state [_ search-input]]


(secretary/defroute "/phones/:phone-id" {:as params}
  (session/put! :current-page #'phone-page)
  (session/put! :params params)
  (re-frame/dispatch [:load-phone-detail (:phone-id params)]))

(defn redirect-to
  [resource]
