Exploring an alternative approach here: 
https://gist.github.com/allgress/11348685

This example uses Reagent (just because I wanted to play with Reagent). The 
bind function binds a DataScript query to a Reagent atom. When a tx-report is 
received, the query is run against the tx-data, and the atom is only updated 
with the full query results (against the new version of the db) if the query 
against tx-data is non-empty. Similarly, undo reverses the db actions 
(add/retract) and applies a new transaction rather than simply reverting to the 
previous db value.

Probably heavy-handed, but I wanted to see what it looked like to deal directly 
with datoms.

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to