From 0f06d217676650b01c5d1a1d0c64cb92c8f15b7a Mon Sep 17 00:00:00 2001 From: Nicholas Kariniemi Date: Fri, 10 Oct 2014 18:45:51 +0300 Subject: [PATCH] Tag local state changes to avoid passing remote changes back to remote --- src/cljs/grub/view/app.cljs | 8 ++++---- src/cljs/grub/view/grub.cljs | 4 ++-- src/cljs/grub/view/grub_list.cljs | 8 ++++---- src/cljs/grub/view/recipe.cljs | 2 +- src/cljs/grub/view/recipe_list.cljs | 4 ++-- 5 files changed, 13 insertions(+), 13 deletions(-) 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 (