Dan Holmsand
e79132c1f3
Always queue updates in reactions, even when flushing
2015-10-07 11:32:42 +02:00
Dan Holmsand
d0f480f3f2
Remove hack to support sync reactions
...
It became too messy, risky and confusing to be worth it.
2015-09-30 09:40:57 +02:00
Dan Holmsand
3fca2e5d41
Make reactions async by queueing changes instead
...
Reactions now put themselves in a queue when they get a
callback from an atom. The queue is flushed before rendering, and
on deref on individual reactions.
This turns out to perform much better in many cases.
2015-09-30 08:56:06 +02:00
Dan Holmsand
28d454ece9
Include size of cached reactions in tests
2015-09-24 07:48:03 +02:00
Dan Holmsand
0b77d9af31
Get rid of active?
2015-09-10 20:51:09 +02:00
Dan Holmsand
c4cd8c2921
wip: tests pass
2015-08-31 11:36:42 +02:00
Dan Holmsand
6c345db29e
Now almost working
2015-08-31 10:39:17 +02:00
Dan Holmsand
1782ff1832
wip - not working
2015-08-31 10:05:53 +02:00
Dan Holmsand
b2210c2bf3
atom -> r/atom everywhere else, for consistency
2015-07-31 15:13:27 +02:00
Dan Holmsand
cdd3c851a0
Fix cursor bug
...
Cursor wasn't updated when changing both the cursor and an
underlying atom at once.
2015-05-25 21:31:43 +02:00
Dan Holmsand
7568b6843e
Support running site in dev mode without tests
2015-02-11 19:06:38 +01:00
Dan Holmsand
526dfa61ea
Make swap! on non-active Reaction correct
2015-02-11 06:38:57 +01:00
Dan Holmsand
163308a392
Make site and examples work with ClojureScript 2816
...
ClojureScript all of a sudden complains about "single segment
namespaces", which forces a rather massive reorg.
Also, cljs.test/run-tests is broken.
2015-02-10 14:35:12 +01:00