Commit Graph

6 Commits

Author SHA1 Message Date
Daniel Compton b53062e859 Move reagent-id fn to re-frame.interop 2016-12-15 13:28:57 +13:00
Daniel Compton 0f8e95d70f Only require reagent.ratom in CLJS context
Reagent has a reagent.ratom CLJ file, but it is a macro file intended
for use from CLJS, not from a Clojure program.

Fixes #285
2016-12-15 11:54:18 +13:00
Daniel Compton bd18563f5d Tweak trim-v patch
- Add another test assertion
- Add changelog
- Tweak style of std interceptor to use dissoc-in
2016-12-12 15:40:59 +13:00
Daniel Compton 50e87fd5a6 Trace re-frame event lifecycle
Trace subs, FSM, events
Add tests for basic behaviour
2016-11-24 18:14:48 +13:00
Daniel Compton 6b21bfe714 Remove trailing spaces from console logging
console.log and family provide spaces between arguments, so we don't
need to add them in our console errors.
2016-08-22 16:06:15 +12:00
Sam Roberton cc33fe5a95 First pass at converting to CLJC for JVM testing
Note that the goal of using CLJC here is to enable writing and running
`deftest`s in JVM Clojure to test your (CLJS) re-frame app.  Actually
running a re-frame app as a meaningful thing on the JVM (other than for
tests) is explicitly *not* a goal.

- All files renamed *.cljs -> *.cljc
- New `re-frame.interop` ns for stuff that's different between CLJS and
  JVM Clojure, including Reagent interop.
- Other CLJS incompatibilities (eg `catch :default` and `deftype`'s
  `^:mutable` vs `^:volatile-mutable`) are handled with reader
  conditionals in-place.
2016-07-20 19:19:56 +10:00