(use-reaction r)
Takes a Reagent Reaction and rerenders the UI component when the Reaction's value changes. Returns the current value of the Reaction
Takes a Reagent Reaction and rerenders the UI component when the Reaction's value changes. Returns the current value of the Reaction
(use-reaction-ref r)
Takes a Reagent Reaction inside a React ref and rerenders the UI component when the Reaction's value changes. Returns the current value of the Reaction
Takes a Reagent Reaction inside a React ref and rerenders the UI component when the Reaction's value changes. Returns the current value of the Reaction
(use-sub data-source query)
A react hook that subscribes to a subscription, the return value of the hook is the return value of the subscription which will cause the consuming react function component to update when the subscription's value updates.
Arguments are a reagent ratom data-source
, and a subscription query vector (vector of keyword and an optional hashmap of
arguments).
A react hook that subscribes to a subscription, the return value of the hook is the return value of the subscription which will cause the consuming react function component to update when the subscription's value updates. Arguments are a reagent ratom `data-source`, and a subscription query vector (vector of keyword and an optional hashmap of arguments).
(use-sub-map data-source query-map)
A react hook that subscribes to multiple subscriptions, the return value of the hook is the return value of the subscriptions which will cause the consuming react function component to update when the subscriptions' values update.
Takes a data source (reagent ratom) and a hashmap
A react hook that subscribes to multiple subscriptions, the return value of the hook is the return value of the subscriptions which will cause the consuming react function component to update when the subscriptions' values update. Takes a data source (reagent ratom) and a hashmap - keys are keywords (qualified or simple) that you make up. - values are subscription vectors. Returns a map with the same keys and the values are the subscriptions subscribed and deref'd (thus, being their current values).
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close