Liking cljdoc? Tell your friends :D

seql.listener

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.
raw docstring

add-listenerclj

(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
raw docstring

notify!clj

(notify! schema mutation args)

Run through the list of registered listeners for a mutation

Run through the list of registered listeners for a mutation
raw docstring

remove-listenerclj

(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.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close