Skip to content

Instantly share code, notes, and snippets.

@ul
Last active August 29, 2015 14:04
Show Gist options
  • Save ul/7bebfa3406a0e8417f58 to your computer and use it in GitHub Desktop.
Save ul/7bebfa3406a0e8417f58 to your computer and use it in GitHub Desktop.
SOwS4
(defn send-patch! [old new]
(let [[d- d+] (butlast (diff old new))]
(when (or d- d+)
(chsk-send! [:app/sync [d- d+]]))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment