(cache-and-return! get-subscription-cache
get-cache-key
app
query-v
reaction-or-cursor)
cache the reaction r
cache the reaction r
(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
(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.
(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.
(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}
(reg-layer2-sub get-input-db-signal register-handler! query-id path-vec-or-fn)
(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.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close