Liking cljdoc? Tell your friends :D

space.matterandvoid.subscriptions.impl.subs


args->inputs-fnclj/s

(args->inputs-fn get-input-db-signal subscribe err-header args)
source

args-merge-fnclj/s

source

cache-and-return!clj/s

(cache-and-return! get-subscription-cache
                   get-cache-key
                   app
                   query-v
                   reaction-or-cursor)

cache the reaction r

cache the reaction r
sourceraw docstring

clear-subscription-cache!clj/s

(clear-subscription-cache! get-subscription-cache app)

calls on-dispose for each cached item, which will cause the value to be removed from the cache

calls `on-dispose` for each cached item,
which will cause the value to be removed from the cache
sourceraw docstring

deref-input-signalsclj/s

(deref-input-signals signals query-id)
source

make-subs-handler-fnclj/s

(make-subs-handler-fn inputs-fn computation-fn query-id)

A subscription is just a function that returns a reagent.Reaction.

This is where the inputs-fn is executed and the computation is put inside a reaction - ie a callback for later invocation when subscribe is called and derefed.

A subscription is just a function that returns a reagent.Reaction.

This is where the inputs-fn is executed and the computation is put inside a reaction - ie a callback for later
invocation when subscribe is called and derefed.
sourceraw docstring

map-signalsclj/s

(map-signals f signals)

Runs f over signals. Signals may take several forms, this function handles all of them.

Runs f over signals. Signals may take several
forms, this function handles all of them.
sourceraw docstring

map-valsclj/s

(map-vals f m)

Returns a new version of 'm' in which 'f' has been applied to each value. (map-vals inc {:a 4, :b 2}) => {:a 5, :b 3}

Returns a new version of 'm' in which 'f' has been applied to each value.
(map-vals inc {:a 4, :b 2}) => {:a 5, :b 3}
sourceraw docstring

memoize-fnclj/s

source

merge-update-argsclj/s

(merge-update-args subs-vec args*)
source

parse-reg-sub-argsclj/s

(parse-reg-sub-args get-input-db-signal subscribe err-header args)
source

reg-layer2-subclj/s

(reg-layer2-sub get-input-db-signal register-handler! query-id path-vec-or-fn)
source

reg-subclj/s

(reg-sub get-input-db-signal
         get-handler
         register-handler!
         get-subscription-cache
         cache-lookup
         get-cache-key
         query-id
         &
         args)

db, fully qualified keyword for the query id optional positional args.

db, fully qualified keyword for the query id
optional positional args.
sourceraw docstring

reg-sub-rawclj/s

(reg-sub-raw register-handler! query-id handler-fn)
source

set-args-merge-fn!clj/s

(set-args-merge-fn! f)
source

set-memoize-fn!clj/s

(set-memoize-fn! f)
source

subscribeclj/s

(subscribe get-handler
           cache-lookup
           get-subscription-cache
           get-cache-key
           datasource
           query)

Takes a datasource and query and returns a Reaction.

Takes a datasource and query and returns a Reaction.
sourceraw docstring

valid-signalsclj/s

source

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

× close