Fix up interceptors and get rid of pesky warnings.

This commit is contained in:
Mike Thompson 2016-08-19 00:20:03 +10:00
parent 3dc5c728c6
commit dd8bc250fb
2 changed files with 3 additions and 3 deletions

View File

@ -38,13 +38,13 @@
"
([id]
(->interceptor
:name :coeffects
:id :coeffects
:before (fn coeffects-before
[context]
(update context :coeffects (get-handler kind id)))))
([id value]
(->interceptor
:name :coeffects
:id :coeffects
:before (fn coeffects-before
[context]
(update context :coeffects (get-handler kind id) value)))))

View File

@ -30,7 +30,7 @@
call the registered effects handlers for each of the map's keys:
`:dispatch`, `:undo` and `:db`."
(->interceptor
:name :do-fx
:id :do-fx
:after (fn do-fx-after
[context]
(->> (:effects context)