Facilities to register and run listeners. Listeners are ran after a successful mutation has happened and are fed an identifier, the transaction results as well as its initial pameters.
Facilities to register and run listeners. Listeners are ran after a successful mutation has happened and are fed an identifier, the transaction results as well as its initial pameters.
(add-listener schema mutation handler)
(add-listener schema mutation key handler)
Given an environment, add a mutation handler.
The handlers is bound by key
, if specified, otherwise the key
will
default to the mutation key. Yields an updated environment
Given an environment, add a mutation handler. The handlers is bound by `key`, if specified, otherwise the `key` will default to the mutation key. Yields an updated environment
(notify! schema mutation args)
Run through the list of registered listeners for a mutation
Run through the list of registered listeners for a mutation
(remove-listener schema mutation)
(remove-listener schema mutation key)
Given an environment, remove a mutation handler by key
if
specified, otherwise it will remove a handler that match the
mutation key
. Yields an updated environment.
Given an environment, remove a mutation handler by `key` if specified, otherwise it will remove a handler that match the mutation `key`. Yields an updated environment.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close