Hi Ryan,

You can use core.async to create a process that has exclusive access to the 
atom that holds all state. This greatly simplifies the structure of the client 
application.

I wrote a tutorial on quiescent that uses this structure:
https://github.com/wvdlaan/todomvc

The tutorial is a bit old and doesn't show any server interaction but it 
provides an example on how you could structure your application.

It is not difficult to add server interaction. You would have to change the 
process started by todomvc.application/init-updates to work like this;

1) wait for a transaction to arrive from either the UI or the server
2) process the transaction and optionally send a message to the server
3) render the UI
4) loop

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to