1180 Commits

Author SHA1 Message Date
Dan Holmsand
7df2941c7d Better error reporting
Warnings are now printed using console.warn. The name of the current
component is included in more cases.

Also warn every time an atom is derefed in a lazy seq, and not just
the first.
2015-02-02 13:41:29 +01:00
Dan Holmsand
5eca79a433 Try warn when passing native React classes to hiccup form 2015-02-01 21:43:41 +01:00
Dan Holmsand
f005fe3d1e Expose state-atom 2015-02-01 21:13:05 +01:00
Dan Holmsand
81dfa7c682 Allow auto-running reaction to be watched 2015-02-01 20:26:18 +01:00
Dan Holmsand
9d0d0680ec Remove unused css from todomvc example 2015-02-01 20:16:23 +01:00
Dan Holmsand
2c7abcb710 Add warning when derefing a changed wrap 2015-02-01 19:53:00 +01:00
Dan Holmsand
6e0e9ed564 Make wrap watchable 2015-02-01 19:43:26 +01:00
Dan Holmsand
5798a3f056 Move wrap to ratom 2015-02-01 19:22:46 +01:00
Dan Holmsand
742a8d3575 Add some preliminary docs 2015-02-01 15:29:04 +01:00
Dan Holmsand
83fd1361df Remove bundled React
No longer needed, since we use cljsjs/react instead.

Also remove obsolete interop macros, and some general cleanup
2015-02-01 15:13:08 +01:00
Dan Holmsand
58fd72cd86 Make sure setter can override values in Reaction
Also assert that cursor src isn't a vector.

And a little cleanup.
2015-02-01 12:53:44 +01:00
Dan Holmsand
744165737f Make Reaction always call watches
Even if it is not executed automatically
2015-02-01 00:41:59 +01:00
Dan Holmsand
dfd3e540f3 Use cljs.test 2015-01-31 23:09:42 +01:00
Dan Holmsand
d57fbc8fd6 Simplify page handling in demo a little 2015-01-31 22:02:30 +01:00
Dan Holmsand
6d9bb35996 Deprecate calling cursor with atom as second argument 2015-01-31 14:29:01 +01:00
Dan Holmsand
86bf871329 Swap order of arguments to cursor
So now it should be called as (r/cursor atom path). The old order
still works though.
2015-01-31 14:08:19 +01:00
Dan Holmsand
976d8ba4f6 Make cursor more general and flexible
Instead of passing an atom, you can now pass a function.

That function is passed one argument (the path provided to cursor)
when deref-ing, and two arguments (path and new value) when
resetting.

Remove the old setter, and the currying version.
2015-01-31 13:32:48 +01:00
Dan Holmsand
a28dc812ae Check for memory leaks 2015-01-31 12:22:53 +01:00
Dan Holmsand
00b5c1d330 Add tests from reagent-cursor 2015-01-31 11:01:35 +01:00
Dan Holmsand
c64cab83a4 Make cursor use Reaction all the way 2015-01-31 09:55:32 +01:00
Dan Holmsand
0e7f5518c0 Allow deref of Reaction outside active Reaction 2015-01-30 21:20:02 +01:00
Dan Holmsand
99cc5ef506 Use source-map-timestamp 2015-01-30 17:09:24 +01:00
Dan Holmsand
0b97403d1b Use cljsjs/react and require clojurescript >= 2740
This means that old style :preamble inclusion is deprecated.
2015-01-29 14:49:01 +01:00
Dan Holmsand
54e0790d73 Update React to 0.12.2 2014-12-19 18:43:15 +01:00
Dan Holmsand
69ae860a0e Streamline template.cljs a little 2014-12-19 18:35:49 +01:00
Dan Holmsand
2de7f28eed Fix multimethods with newer ClojureScript 2014-12-18 20:32:23 +01:00
Dan Holmsand
c072ae8249 Some clean-up of prop conversion 2014-12-16 13:33:52 +01:00
Dan Holmsand
99aeb989c8 Use implements? everywhere for consistency 2014-12-15 20:16:15 +01:00
Dan Holmsand
754aeee5ad Simplify prop-name handling a little 2014-12-15 15:21:28 +01:00
Dan Holmsand
771fa2d073 Tiny optimization of tag- and prop-name parsing 2014-12-15 14:46:34 +01:00
Dan Holmsand
e6fa29dfb8 A couple of simple optimizations 2014-12-12 09:42:42 +01:00
Dan Holmsand
34e5af0aea Fix async demo 2014-12-12 09:42:24 +01:00
Dan Holmsand
96f57a27b6 Fix site display on mobile 2014-12-11 09:01:25 +01:00
Dan Holmsand
5550c12b9e Merge pull request #75 from pandeiro/patch-1
update react version in script tag
2014-12-10 14:36:29 +01:00
Dan Holmsand
40f3392b95 Add support for pushing to reagent-project's doc site 2014-12-10 12:57:34 +01:00
Dan Holmsand
f905c8be9d Update versions in examples 2014-12-10 12:51:14 +01:00
Dan Holmsand
4776799039 Version 0.5.0-alpha v0.5.0-alpha 2014-12-10 12:39:30 +01:00
Dan Holmsand
8c2dfafcec Merge https://github.com/holmsand/reagent 2014-12-10 12:34:04 +01:00
Dan Holmsand
716789c245 Get version from project file 2014-12-10 12:21:29 +01:00
Dan Holmsand
f4ec73e77d Add news item about new version 2014-12-10 12:02:47 +01:00
Dan Holmsand
54a4e28245 Remove four argument version of render for now 2014-12-09 13:29:26 +01:00
Dan Holmsand
0e8ca42a37 Add test for force-update-all 2014-12-09 12:58:30 +01:00
Dan Holmsand
2c2eb9960f Use figwheel 0.1.7 2014-12-09 07:43:32 +01:00
Dan Holmsand
197aca78d4 Misc cleanup 2014-12-08 13:37:25 +01:00
Dan Holmsand
59b2e6d6ee Cleanup and fix for ClojureScript 0.0-2411 2014-12-07 21:07:32 +01:00
Dan Holmsand
fc2c59c3e1 Add docs for create-element, and one-argument version
And add a fix for the benefit of Light Table
2014-12-07 20:26:29 +01:00
Dan Holmsand
6e8a5178b3 Use new macro-based syntax highlighting 2014-12-07 19:26:20 +01:00
Dan Holmsand
7160a9f579 Experiment with syntax generation in macro 2014-12-07 16:38:56 +01:00
Dan Holmsand
1a2417a14b Fix tests when macros change 2014-12-07 16:38:28 +01:00
Dan Holmsand
ed06312eaf Make render force already mounted components to update by default
This should make using Reagent with figwheel more convenient (no need
for force-update-all). Add a fourth argument to render that controls
the updating.
2014-12-07 10:00:47 +01:00