Fix up interceptors and get rid of pesky warnings.
This commit is contained in:
parent
3dc5c728c6
commit
dd8bc250fb
|
@ -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)))))
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue