Mike Thompson
8737d57b0d
Misc interceptor cleanups
2016-08-03 17:34:30 +10:00
Mike Thompson
a97741ada0
Add ctx-handler->interceptor
2016-08-03 17:33:18 +10:00
Mike Thompson
8ef5c6b8ba
Reorganize my lets
2016-08-03 17:32:42 +10:00
Mike Thompson
3b14f3ffb6
Give names to anonymous functions
2016-08-03 17:32:06 +10:00
Mike Thompson
3e203c6650
Improve comment
2016-08-03 17:30:46 +10:00
Mike Thompson
600c12a285
Provide an example of a coeffect-ing interceptor
2016-08-03 17:19:28 +10:00
Mike Thompson
311367dc3d
Change to Interceptors (away from middleware). This is a big code drop.
...
Tests pass and todomvc works.
But there is some ugliness to now resolve, and a couple of unresolved issues.
2016-08-03 12:53:01 +10:00
Mike Thompson
7fff9c6039
Improve comments around post-event-callback stuff
2016-07-29 14:31:31 +10:00
Mike Thompson
996eda62ce
alpha9 - fix another bug
2016-07-28 19:00:17 +10:00
Mike Thompson
16d4da2c62
Fix bug with queue initialisation
2016-07-28 18:52:35 +10:00
Mike Thompson
9f61691279
Add helpful warnings when post event callback fns find a problem
2016-07-28 16:37:57 +10:00
Mike Thompson
a5a2cc9bdc
rename fmap to map-vals
2016-07-28 15:55:24 +10:00
Mike Thompson
c250bbbc9d
Comment change
2016-07-28 15:55:02 +10:00
Mike Thompson
e2034f4576
Allow registration and de-registration of post event callbacks via an id.
2016-07-28 14:50:39 +10:00
Mike Thompson
05c1e1fbd9
Produce deprecation warnings rather than errors. Dispense with warnings on earlier alpha changes.
2016-07-28 14:01:03 +10:00
Mike Thompson
358efc7091
Remove old todos
2016-07-27 22:34:04 +10:00
Mike Thompson
c60e096d55
Correct bug in previous commit
2016-07-27 22:31:36 +10:00
Mike Thompson
29e3bfe145
Improve error strings. Use destructure
2016-07-27 22:26:22 +10:00
hipitihop
e884dcadb6
Simplify :dispatch-later and only support single :dispatch
2016-07-27 16:03:29 +10:00
hipitihop
12f6eeee3c
Change :dispatch-later fx handler now expects vector of {:ms ... :dispatch ...} & add unit test
2016-07-27 15:43:47 +10:00
hipitihop
6344d0a53c
fx - check :dispatch effect val to be vector? & introduce new effect :dispatch-n for
2016-07-26 16:53:50 +10:00
Daniel Compton
0ce1a04930
Return nil when registering a handler
2016-07-26 16:09:56 +12:00
Mike Thompson
e47caa2f34
Improve comment
2016-07-26 11:42:02 +10:00
Mike Thompson
d2645c089d
add helpful error messages which explain recent renaming
2016-07-24 18:14:43 +10:00
Mike Thompson
f5175223d5
v0.8.0-alpha3
2016-07-24 17:13:15 +10:00
Mike Thompson
658f3b0232
Switch to using reg-*
naming, instead of def-*
naming
2016-07-24 17:08:09 +10:00
Mike Thompson
52d61c03b3
Merge branch 'master' into develop
...
Conflicts:
src/re_frame/subs.cljc
2016-07-23 09:52:41 +10:00
Oliver Hine
5daafa7db4
Fix never-ending warn about not implementing IReactiveAtom
2016-07-22 19:44:05 +01:00
Stuart Mitchell
faae34822c
Removed undo functionality as it is not handled in day8.re-frame/undo
2016-07-22 14:02:18 +12:00
Daniel Compton
7bf6902230
Lower logging levels of normal events
...
We don't need to use the :warn logging level for standard events.
2016-07-22 12:40:26 +12:00
Sam Roberton
02ec0c26e6
CLJC: fix subs handlers to supply correct arity
2016-07-21 17:56:46 +10:00
Sam Roberton
ef3656ff60
CLJC: tools.logging as default re-frame.loggers
2016-07-21 17:08:38 +10:00
Sam Roberton
b4d915c395
CLJC bugfix: IAtom is an interface, not a protocol
2016-07-21 17:08:01 +10:00
Sam Roberton
951682db81
CLJC: address (some of) Daniel's review comments
2016-07-21 12:42:25 +10: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
hipitihop
3c4b0791fc
correct use of list? to account for lazy seqs
2016-07-20 17:16:01 +10:00
Stuart Mitchell
25a197cdd9
Removed possibly confusing usage of spec to parse function arguments in register-pure
2016-07-20 17:48:10 +12:00
hipitihop
d8e97b86d7
comment typos
2016-07-20 10:35:19 +10:00
Mike Thompson
f220e6821b
Merge pull request #181 from Day8/spec
...
Moved todomvc to spec checking
2016-07-20 09:53:39 +10:00
Mike Thompson
018eb0dff5
Better comment
2016-07-20 09:52:26 +10:00
Stuart Mitchell
1dd52faeae
Moved todomvc to spec checking
2016-07-20 11:39:59 +12:00
Mike Thompson
854109ed46
Merge remote-tracking branch 'origin/stack-dispatch' into develop
...
Conflicts:
src/re_frame/router.cljs
2016-07-19 22:25:23 +10:00
Mike Thompson
06bec5b1d0
Even though they are temporary log messages, switch to use offical method.
2016-07-19 18:51:45 +10:00
Mike Thompson
f42a4fa349
Get rid of another explicit js/Error reference
2016-07-19 18:51:04 +10:00
Mike Thompson
faece2fd0f
Remove explicit use of js/Error. Starting the process of making re-frame cljc-ready
2016-07-19 18:37:03 +10:00
Stuart Mitchell
19ede7bac5
Adds informational stack traces to errors in dispatch
2016-07-19 16:46:33 +12:00
Mike Thompson
3739369c64
Better comment
2016-07-19 14:33:52 +10:00
Mike Thompson
3311d02c22
Switch from using doall
to dorun
2016-07-18 23:54:39 +10:00
Mike Thompson
19f70625e1
Add console to core.
2016-07-18 19:37:01 +10:00
Mike Thompson
2c370cf8d3
Move :forward-events
to be its own library.
2016-07-15 23:51:40 +10:00