Commit Graph

1017 Commits

Author SHA1 Message Date
Dan Holmsand 60c074b633 Describe cljsjs/react dependency in README 2015-03-11 17:49:21 +01:00
Dan Holmsand f673f32f38 Update changelog a bit 2015-03-11 17:48:13 +01:00
Marc-Olivier Fiset b1d009fbf9 Remove recursive link
There was a link in the README.md that indicated the reagent repo had moved, but the link pointed back to this exact project. Removed it.
2015-03-01 21:13:54 -05:00
Dan Holmsand 7568b6843e Support running site in dev mode without tests 2015-02-11 19:06:38 +01:00
Dan Holmsand 19a384443f Make -deref in Reaction a little clearer 2015-02-11 06:47:11 +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
Dan Holmsand 4d559ef862 Move syntax highlighting to ClojureScript, to reduce code size a bit 2015-02-09 21:02:31 +01:00
Dan Holmsand 7d2ca6332c Back to snapshot 2015-02-09 19:13:05 +01:00
Dan Holmsand 9db4b6df2c Version 0.5.0-alpha3 2015-02-09 19:09:20 +01:00
Dan Holmsand 986be5c387 Use a README instead .keep for gh-pages 2015-02-09 15:02:16 +01:00
Dan Holmsand 212f69e180 Make sure gen-site exists, even when intervals are running 2015-02-09 14:14:12 +01:00
Dan Holmsand 14ca20bc4b Example css updated 2015-02-09 13:20:05 +01:00
Dan Holmsand 8feaccca88 Add IReactiveAtom type, and use in cursor asserts 2015-02-09 13:19:12 +01:00
Dan Holmsand 86f9298c4e Make geometry example use figwheel 2015-02-09 12:55:33 +01:00
Dan Holmsand 73281cdd16 Make todomvc example use figwheel 2015-02-09 12:29:48 +01:00
Dan Holmsand 3e9b42a92b Add README to example 2015-02-09 12:07:46 +01:00
Dan Holmsand 0b1c7ffc33 Make simple-example use figwheel 2015-02-09 09:43:43 +01:00
Dan Holmsand a29e0c75c7 Make sure reactify-component always re-renders
It might get mutable data from js
2015-02-08 13:20:40 +01:00
Dan Holmsand e6c8639277 Try harder to find meaningful name for components
Thereby hopefully improving warning messages a bit.
2015-02-08 12:56:56 +01:00
Dan Holmsand a1e4de4d68 Make tests only run once when figwheel reloads 2015-02-08 12:26:39 +01:00
Dan Holmsand a2b5acb68f Make warning for missing keys print data
That will hopefully make finding the offending code easier
to find.
2015-02-08 12:24:52 +01:00
Dan Holmsand 8b5905c9e1 Add reactify-component: adapts Reagent component for use in JSX 2015-02-08 00:04:45 +01:00
Dan Holmsand b574d8cc5a Add state-atom (again) 2015-02-07 09:39:33 +01:00
Dan Holmsand 7641288982 Use figwheel 0.2.3 and cleanup of project.clj 2015-02-07 09:30:20 +01:00
Dan Holmsand 5a8738d2c4 Update clojurescript to 0.0-2760 2015-02-05 11:39:09 +01:00
Dan Holmsand 4eee0f4d06 Add more stuff to changelog 2015-02-04 23:13:15 +01:00
Dan Holmsand ac3ed8dbe0 Mention :reagent-render in docs, and use it in template.cljs 2015-02-04 22:55:55 +01:00
Dan Holmsand 721e3bab00 Revert adding of state-atom
There may be a better api - and it's not very important anyway.
2015-02-04 22:50:22 +01:00
Dan Holmsand 017fa9c106 Rename :component-function to :reagent-render
But keep :component-function as alias for the time being
2015-02-04 22:45:39 +01:00
Dan Holmsand c862792624 Revert experiment with lazy reaction
Needs more surgery to get this to work properly
2015-02-04 22:14:04 +01:00
Dan Holmsand d39656624d Make Reaction and cursors lazy
Their value will now only be calculated as needed (i.e when deref
is called), which should make debugging them much easier.

This also makes updating the atom they are relying on cheaper.
2015-02-04 16:03:35 +01:00
Dan Holmsand 9260d9b74b More docs for cursor 2015-02-02 22:14:57 +01:00
Dan Holmsand 600d6bbb59 Add some docs for adapt-react-class 2015-02-02 17:47:01 +01:00
Dan Holmsand 15acc0d6ff Added adapt-react-class 2015-02-02 15:19:43 +01:00
Dan Holmsand 81e826df03 Update clojurescript to 2755 2015-02-02 13:52:22 +01:00
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