(args->inputs args-format args)
Normalizes args to a canonical vector format. For use in determining input reaction IDs. Ensure that rx-fn is wrapped in a processing fn that will properly structure incoming args.
Normalizes args to a canonical vector format. For use in determining input reaction IDs. Ensure that rx-fn is wrapped in a processing fn that will properly structure incoming args.
(-add-watch this key f)
(-downstream this)
(-get-value this)
(-mark-stale! this)
(-remove-watch this key)
(-stale? this)
(-upstream this)
(-add-reaction! this rx-config)
(-get-reaction this id)
Finds the registered reaction. Should throw if unregistered.
Finds the registered reaction. Should throw if unregistered.
(-remove-reaction! this rx-id cascade?)
(-reset-root! this v)
(-swap-root! this f)
(-swap-root! this f a)
(-swap-root! this f a b)
(-swap-root! this f a b c)
(-swap-root! this f a b c d)
(-swap-root! this f a b c d e)
(-swap-root! this f a b c d e f)
(-swap-root! this f a b c d e f args)
(infer-args-format m args)
(infer-args-format m args default)
Expects a partial rx map and a args parameter from a reaction config. Based on structure of args and whether it exists in partial rx map it returns a keyword specifying the args type it expects. Optionally accepts a default type as a third argument.
Expects a partial rx map and a args parameter from a reaction config. Based on structure of args and whether it exists in partial rx map it returns a keyword specifying the args type it expects. Optionally accepts a default type as a third argument.
(parse-rx-config m rx-config)
Transforms a reaction config map into a standard RxReaction creation map.
Doesn't modify the partial-rx-map
passed in, it is only used to match input reactions for args-format inferrence.
Transforms a reaction config map into a standard RxReaction creation map. Doesn't modify the `partial-rx-map` passed in, it is only used to match input reactions for args-format inferrence.
(update-root-impl rx f)
(update-root-impl rx f a)
(update-root-impl rx f a b)
(update-root-impl rx f a b c)
(update-root-impl rx f a b c d)
(update-root-impl rx f a b c d e)
(update-root-impl rx fun a b c d e f)
(update-root-impl rx fun a b c d e f & args)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close