diff --git a/src/cljs/grub/view/app.cljs b/src/cljs/grub/view/app.cljs index 87096fc..167612b 100644 --- a/src/cljs/grub/view/app.cljs +++ b/src/cljs/grub/view/app.cljs @@ -25,7 +25,7 @@ (dom/on-document-mousedown #(put! >events {:type :body-mousedown :event %})) (dom/on-window-scroll #(put! >events {:type :body-scroll :event %})))))) -(defn render-app [initial-state remote-states local-states] +(defn render-app [initial-state remote] (let [state (atom initial-state) >events (chan) events :type) @@ -36,8 +36,8 @@ :shared {:>events >events :remote new-state)))}) + (go (loop [] (when-let [new-state (