mirror of
https://github.com/status-im/re-frame.git
synced 2025-02-24 07:48:14 +00:00
fixes #400
This commit is contained in:
parent
e03ee46a89
commit
a3d740fd89
@ -83,13 +83,17 @@
|
||||
:id :coeffects
|
||||
:before (fn coeffects-before
|
||||
[context]
|
||||
(update context :coeffects (get-handler kind id)))))
|
||||
(if-let [handler (get-handler kind id)]
|
||||
(update context handler :coeffects)
|
||||
(console :error "No cofx handler registered for \"" id "\"")))))
|
||||
([id value]
|
||||
(->interceptor
|
||||
:id :coeffects
|
||||
:before (fn coeffects-before
|
||||
[context]
|
||||
(update context :coeffects (get-handler kind id) value)))))
|
||||
(if-let [handler (get-handler kind id)]
|
||||
(update context :coeffects handler value)
|
||||
(console :error "No cofx handler registered for \"" id "\""))))))
|
||||
|
||||
|
||||
;; -- Builtin CoEffects Handlers ---------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user