diff --git a/src/cljs/grub/core.cljs b/src/cljs/grub/core.cljs index 7850910..14489d2 100644 --- a/src/cljs/grub/core.cljs +++ b/src/cljs/grub/core.cljs @@ -12,7 +12,7 @@ (state/sync-state! from-remote to-remote reset? state-changes))) (defn init-app [] - (let [state-changes (view/render-app state/state state-changes)] + (let [state-changes (view/render-app state/state)] (connect-to-server true state-changes))) (init-app) diff --git a/src/cljs/grub/state.cljs b/src/cljs/grub/state.cljs index 7e8410e..34f5c6c 100644 --- a/src/cljs/grub/state.cljs +++ b/src/cljs/grub/state.cljs @@ -16,14 +16,16 @@ @server-state (get @unacked-states hash))) -(defn sync-state! [to from reset? state-changes] +(defn send-state-changes-to-server! [state-changes from] (go-loop [] (when-let [current-state (