(<sub app query)
Subscribe and deref a subscription, returning its value, not a reaction.
Subscribe and deref a subscription, returning its value, not a reaction.
(cleanup! this)
Intended to be called when a component unmounts to clear the registered Reaction.
Intended to be called when a component unmounts to clear the registered Reaction.
(get-handler id)
Returns a "handler" function registered for the subscription with the given id
.
Fulcro app and 'query-id' -> subscription handler function.
Lookup in the place where the query-id -> handler functions are stored.
Returns a "handler" function registered for the subscription with the given `id`. Fulcro app and 'query-id' -> subscription handler function. Lookup in the place where the query-id -> handler functions are stored.
(get-input-db-signal app)
Given the storage for the subscriptions return an atom containing a map (this it the 'db' in re-frame parlance). this assumes you've set your fulcro app's state-atom to be reagent reactive atom.
Given the storage for the subscriptions return an atom containing a map (this it the 'db' in re-frame parlance). this assumes you've set your fulcro app's state-atom to be reagent reactive atom.
(register-handler! id handler-fn)
Returns handler-fn
after associng it in the map.
Returns `handler-fn` after associng it in the map.
(setup-reaction! this client-render)
Installs a Reaction on the provided component which will re-render the component when any of the subscriptions' values change.
Installs a Reaction on the provided component which will re-render the component when any of the subscriptions' values change.
(subscribe ?app query)
Given a query
vector, returns a Reagent reaction
which will, over
time, reactively deliver a stream of values. Also known as a Signal
.
To obtain the current value from the Signal, it must be dereferenced
Given a `query` vector, returns a Reagent `reaction` which will, over time, reactively deliver a stream of values. Also known as a `Signal`. To obtain the current value from the Signal, it must be dereferenced
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close