393 Commits

Author SHA1 Message Date
Juho Teperi
f750a99abd Enable advanced build 2017-06-06 19:10:41 +03:00
Juho Teperi
9d2991ed32 Test with npm deps 2017-06-06 18:33:23 +03:00
Juho Teperi
bc677736ed Merge pull request #283 from viebel/master
Make reagent self-host compatible
2017-05-19 20:07:59 +03:00
Juho Teperi
18cb1468a6 Update to React 15.5, use create-react-class
Fixes #292
2017-05-19 19:30:38 +03:00
Juho Teperi
93043e86c4 Throw error instead of assert false 2017-03-11 01:35:14 +02:00
Juho Teperi
82c4013a29 Use deftype constrcutor functions instead of interop, replaces #144 2017-03-11 01:19:35 +02:00
Yehonathan Sharvit
5f4f9a06aa remove deprecated code in interop.clj 2017-01-02 09:06:03 +02:00
Yehonathan Sharvit
cb72f2172f Update interop.clj 2016-12-29 23:45:25 +02:00
Juho Teperi
9d6359d816 Update to React 15.4.0 and drop dom-server functions from core 2016-11-17 02:11:35 +02:00
Yehonathan Sharvit
7603ab8a8c remove java.io 2016-10-30 01:30:37 +03:00
Dan Holmsand
b65afde4d7 Use dom-node from reagent.dom in template
And make sure we don't try to access unmounted component's dom
node.
2016-09-16 12:14:10 +02:00
Juho Teperi
0303c6ddef Use findDOMNode instead of ref to manage ReagentInput 2016-09-14 23:11:51 +03:00
Juho Teperi
b4ec13f003 Fix #259: Call original ref in ReagentInput 2016-09-13 15:15:39 +03:00
Dan Holmsand
42ba1662cb Fix lost onChange events on IE11
IE11 doesn't report onChange on every change, so we cannot trust
that the input elements value in in sync with what is reported.

To solve this keep track of the last known value of the input,
and only consult the input value when necessary.
2016-07-14 08:34:36 +02:00
Dan Holmsand
e89cad7c4c Merge branch 'master' of https://github.com/sir-pinecone/reagent 2016-06-08 21:06:26 +02:00
Dan Holmsand
fed05ab7cd Merge branch 'master' of https://github.com/yayitswei/reagent 2016-06-08 20:59:24 +02:00
Dan Holmsand
bb2faefcbe Move add-on-dispose! to IDisposable
And pass the reaction to the dispose function.
2016-06-07 16:35:17 +02:00
Dan Holmsand
30c9402fe9 Add note about lazy cursors. 2016-06-07 16:23:13 +02:00
Dan Holmsand
1280f58201 Make sure after-render fn is called immediately after render
when after-render is called during rendering. This should happen both
if the render is a part of the normal rendering loop, or if it is
triggered by render or force-update.
2016-05-31 23:09:43 +02:00
Dan Holmsand
a4faf372fe Clarify after-render doc string 2016-05-31 18:01:48 +02:00
Dan Holmsand
ff48b3653d Clean up circular dependency avoidance 2016-05-27 11:35:31 +02:00
Dan Holmsand
072cce4844 Add add-on-dispose! to Reaction 2016-05-26 17:41:30 +02:00
Dan Holmsand
9681dd4dbf Slightly better error message if React module is missing
Make sure to throw error even if asserts are disabled
2016-05-02 20:38:18 +02:00
Dan Holmsand
14366ccce3 Flush ratom queue before rendering
Make sure outstanding reactions etc are up-to-date.
2016-05-02 20:18:58 +02:00
Dan Holmsand
86b98dcdba Make ratom-flush placeholder function a simple fn 2016-05-02 09:37:16 +02:00
Dan Holmsand
e128117788 Improve exception-handling in reactions
Make sure exceptions in children of reactions don't end up
being caught in the reaction itself.
2016-05-01 13:09:12 +02:00
Dan Holmsand
1d912f0eaf Make sure force-update flushes queued reactions 2016-04-30 14:24:18 +02:00
Dan Holmsand
995acb6c34 Make reaction with error always throw on deref 2016-04-30 13:56:00 +02:00
Dan Holmsand
404ed67734 Import ReactDOM and ReactDOMServer lazily
This should allow the use of require to be optimized away when
using advanced compilation in e.g React native and node.
2016-04-30 11:34:48 +02:00
Dan Holmsand
9631021da7 Make sure reactions continue to run after throw 2016-04-29 20:42:05 +02:00
Dan Holmsand
37b2954c3a Allow symbols, keywords and arbitrary cljs objects in markup
React no longer defaults to applying toString, and instead throws
confusing error messages when it encounters non-element objects.

This should make that happen less often.
2016-04-29 09:26:06 +02:00
Dan Holmsand
f76bce6a2f Delay error reporting of missing ReactDOM[Server]
This should improve error messages, and allow Reagent to be used
without ReactDOM[Server] being present at all.
2016-02-24 13:34:26 +01:00
Wei Hsu
85fbff060c Fix comment typos 2016-01-07 20:53:43 -08:00
Dan Holmsand
4dd57c0dfb Doc for with-let 2015-12-21 07:43:21 +01:00
Dan Holmsand
b4dec115b2 Add docs for track, track! and dispose! 2015-12-18 14:57:16 +01:00
Michael Campagnaro
2ad5c262e2 Fix doc formatting 2015-11-27 11:13:45 -05:00
Dan Holmsand
2a63c0a214 Load React, ReactDOM etc on init
That should make error messages easier to see.
2015-11-20 19:15:25 +01:00
Dan Holmsand
443e7f45c5 Update React to 0.14.3, and use react-dom-server 2015-11-20 18:57:00 +01:00
Dan Holmsand
cdee524fed Make argv more consistent when used from plain React 2015-10-28 12:43:35 +01:00
Dan Holmsand
91a8587b79 Make core/react a function
That allows us to make react loading lazy in the future.
2015-10-22 15:11:15 +02:00
Dan Holmsand
2f6f2a4491 Fix indentation and style 2015-10-22 13:44:14 +02:00
Dan Holmsand
63515236cb Make sure empty [:input] doesn't throw exception 2015-10-22 13:31:58 +02:00
Dan Holmsand
45b93c8145 Rename .' and .! to $ and $! respectively
This seems to be necessary to avoid trouble with bootstrapped cljs.

The old macros are still around, but deprecated.
2015-10-22 13:23:49 +02:00
Dan Holmsand
7cbde6f115 Load ReactDOM and ReactDOMServer lazily 2015-10-15 13:56:05 +02:00
Dan Holmsand
f280e979c8 Add more convenient time macro 2015-10-15 13:19:36 +02:00
Dan Holmsand
4d00b44c7c Update ClojureScript to 1.7.145 2015-10-14 16:09:02 +02:00
Dan Holmsand
73ba98bc93 ReactDOMServer doesn't seem to exist anywhere
So, don't look for it.
2015-10-14 15:10:46 +02:00
Dan Holmsand
54ecf706d5 Rethrow errors caught during try-run 2015-10-14 15:08:33 +02:00
Dan Holmsand
47c5fcf267 Unoptimize component...
Remove "optimizations" that didn't doo much good.
2015-10-12 22:30:49 +02:00
Dan Holmsand
92984c4c56 Add react to core for convenience 2015-10-12 17:29:03 +02:00