   (reaction (get-in @db [sid element-id])))
 
 (register-sub :note general-query)
+(register-sub :threads general-query)
 (register-sub :ui-state general-query)
 (register-sub :search-state general-query)
 (register-sub :credentials general-query)

    (-> app-state
        (assoc-in [:ui-state :is-busy?] false)
        (assoc-in [:note :current-note] "")
        (assoc-in [:note :thread] nil)
        (assoc-in [:ui-state :show-thread?] false)
        (assoc-in [:note :focus] nil)
        (assoc :search-state nil))))

                                 :results-page  0
                                 :memories      {:pages 0}
                                 :is-searching? false}
                      :threads  {}
                      :note     {:edit-memory nil}
                      })))

