 (defn sidebar-friends-pane [sidebar-stats]
   (r/create-class
     {:component-will-mount (fn [_]
-                             (js/console.log "sidebar friends pane -- will mount")
-                             (go
-                               (let [resp (<! (ajax-chan GET "/app/friends-info" {:user-id (.-uid js/cljat)}))]
-                                 (reset! friends-info (->
-                                                        (js->clj resp)
-                                                        (walk/keywordize-keys)
-                                                        (get-in [:data]))))))
+                             (js/console.log "sidebar friends pane -- will mount"))
      :component-did-mount (fn [_] (js/console.log "sidebar friends pane -- did mount"))
      :reagent-render (fn [sidebar-stats]
                        [:div {:id "sidebar-pane" :class "pane"}

  (fn [thread]
    (let [thread-title (if (-> (:users thread) (count) (> 1))
                         (:title thread)
                         (:nickname (->> (first (:users thread)) (find-user @friends-info))))]
      [:a {:class "thread-item list-group-item"}
       [thread-avatar thread]
       [:div {:class "thread-item-body media-body"}
        [:small {:class "list-group-item-heading"} thread-title]]])))

    (r/create-class
      {:component-will-mount (fn [_]
                               (js/console.log "app component -- will mount")
                               (go
                                 (let [resp (<! (ajax-chan GET "/app/friends-info" {:user-id (.-uid js/cljat)}))]
                                   (reset! friends-info (->
                                                          (js->clj resp)
                                                          (walk/keywordize-keys)
                                                          (get-in [:data])))))
                               (go-loop []
                                 (let [val (<! ch-in)]
                                   (js/console.log "client recv!")
