diff options
Diffstat (limited to 'src/frontend')
-rw-r--r-- | src/frontend/tau/events.cljs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/frontend/tau/events.cljs b/src/frontend/tau/events.cljs index dace6f5..d854b0e 100644 --- a/src/frontend/tau/events.cljs +++ b/src/frontend/tau/events.cljs @@ -312,9 +312,11 @@ (rf/reg-event-fx ::load-stream (fn [{:keys [db]} [_ res]] - {:db (assoc db :stream (js->clj res :keywordize-keys true) - :show-page-loading false) - :fx [[:dispatch [::change-stream-format nil]]]})) + (let [stream-res (js->clj res :keywordize-keys true)] + {:db (assoc db :stream stream-res + :show-page-loading false) + :fx [[:dispatch [::change-stream-format nil]] + [:dispatch [::get-comments (:url stream-res)]]]}))) (rf/reg-event-fx ::get-stream |