36 Commits

Author SHA1 Message Date
Dan Holmsand
87758ae396 Extend test for rswap! 2015-09-14 19:39:44 +02:00
Dan Holmsand
e11c881aa7 Add rswap!
Works just like swap!, except that it allows recursive swaps on
the same atom, and it always returns nil.
2015-09-14 19:35:48 +02:00
Dan Holmsand
8e7624ea45 Add a test for monitor! 2015-09-14 18:14:13 +02:00
Dan Holmsand
d362e0a26c Mix calling style a bit in tests 2015-09-14 13:34:54 +02:00
Dan Holmsand
e05c74e6a5 More tests for monitor 2015-09-14 09:09:04 +02:00
Dan Holmsand
b0d86598ce Start to add tests for monitor 2015-09-13 20:31:31 +02:00
Dan Holmsand
ee72c60d3a Start implementing monitor 2015-09-13 18:17:38 +02:00
Dan Holmsand
e12716da5d Log caught errors instead of rethrowing 2015-09-13 14:30:19 +02:00
Dan Holmsand
04daf6ac57 Exceptions from reactions are now thrown on deref only 2015-09-13 11:00:46 +02:00
Dan Holmsand
b036cf938e Complete async testing 2015-09-12 19:13:31 +02:00
Dan Holmsand
544a3339d0 Start testing async reaction 2015-09-12 18:34:10 +02:00
Dan Holmsand
b0395b5461 Make reaction notify only when it actually changes 2015-09-11 20:37:23 +02:00
Dan Holmsand
b1acdea090 Use lazy reactions in components 2015-09-11 15:06:42 +02:00
Dan Holmsand
f785362b46 Some cleanup 2015-09-10 21:27:02 +02:00
Dan Holmsand
0b77d9af31 Get rid of active? 2015-09-10 20:51:09 +02:00
Dan Holmsand
80a3c27fac Some performance tweaking 2015-09-10 18:30:00 +02:00
Dan Holmsand
e09534c8cd Experiment with alternative to set 2015-09-10 17:40:55 +02:00
Dan Holmsand
c4cd8c2921 wip: tests pass 2015-08-31 11:36:42 +02:00
Dan Holmsand
be7bb69548 wip 2015-08-31 10:59:59 +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
b77b182d67 Work around clojurescript problem with sorted-maps 2015-08-31 08:18:45 +02:00
Dan Holmsand
3defd24c35 Add a test for component-path 2015-08-30 18:29:27 +02:00
Dan Holmsand
eed924311e Add force-update 2015-08-20 14:59:13 +02:00
Dan Holmsand
5d24b9be65 Deprecate calling the result of create-class as a function
In the future, I'd like to make it possible to use Reagent classes
usable directly from React, in order to make interop easier.
2015-08-20 09:35:24 +02:00
Dan Holmsand
a979a36a92 Drop test for key warning
React will sometimes warn, even if we don't.

Also, small fix for async demo.
2015-08-19 10:14:02 +02:00
Dan Holmsand
51048c7a7f Avoid unnecessary warning about missing :key
:key is not necessary in seqs in render-to-string et al.
2015-07-31 16:18:51 +02:00
Dan Holmsand
b2210c2bf3 atom -> r/atom everywhere else, for consistency 2015-07-31 15:13:27 +02:00
Dan Holmsand
2628edabf8 Add tests for extended hiccup syntax 2015-07-30 20:26:16 +02:00
Dan Holmsand
569322949b Take advantage of new figwheel 2015-05-31 11:51:11 +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
767410d8d8 Update clojurescript, figwheel and cljsbuild.
Stop using :figwheel-always, that seems to be broken in the new
figwheel.
2015-03-21 13:53:37 +01: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
73d0478607 Simplify setup of doc site and testing
Take advantage of figwheel 0.2.3
2015-02-10 18:20:48 +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