If bound to a volatile containing a hash map,
matches triggered by fire-rules
will be stored in it
rather than in the atom created by ruleset
.
This is important when modifying the session in a server-side
route because it ensures the modifications will be local
and will not affect other connections happening simultaneously.
Do not use it from clojurescript.
If bound to a volatile containing a hash map, matches triggered by `fire-rules` will be stored in it rather than in the atom created by `ruleset`. This is important when modifying the session in a server-side route because it ensures the modifications will be local and will not affect other connections happening simultaneously. Do not use it from clojurescript.
(atom initial-value)
Returns an atom that can hold local state for a component. Only works in a :then block.
Returns an atom that can hold local state for a component. Only works in a :then block.
(prop)
Returns the prop sent to the component. Only works in a :then block.
Returns the prop sent to the component. Only works in a :then block.
(reactive rule-key *match)
A rum mixin that makes the associated component react to changes from the session and the local atom.
A rum mixin that makes the associated component react to changes from the session and the local atom.
(ruleset rules)
Returns a vector of component rules after transforming the given map.
Returns a vector of component rules after transforming the given map.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close