Commit Graph

18 Commits

Author SHA1 Message Date
Juho Teperi ecbbc60d95 Add Kondo config and lint code 2020-02-05 22:48:54 +02:00
Juho Teperi 40e1ca306b Test cursor assertion only if assertions are enabled 2020-01-15 10:57:36 +02:00
Juho Teperi d70ac1e351 Add cursor assert test 2020-01-15 10:30:23 +02:00
Juho Teperi b973a873fc Merge branch 'revert-128' of https://github.com/moskvax/reagent into moskvax-revert-128 2017-03-11 01:44:23 +02:00
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
Stephen Caraher e8cd105348 add test for cursor variadic swap! 2015-07-23 23:10:35 +10: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