Last active
August 29, 2015 14:04
-
-
Save ul/068900c9cf733f8db400 to your computer and use it in GitHub Desktop.
SOwS3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(om/root app app-state {:target (js/document.getElementById "app") | |
:tx-listen (fn [{:keys [old-state new-state]} _] | |
(send-patch! old-state new-state))} | |
(add-watch app-state :sync (fn [_ _ old new] | |
(send-patch! old new))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment