(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.
(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. Takes a component instance and a render function with signature: (fn render [this])
Installs a Reaction on the provided component which will re-render the component when any of the subscriptions' values change. Takes a component instance and a render function with signature: (fn render [this])
(with-reactive-subscriptions app)
Takes a fulcro app and adds support for using subscriptions The components which deref subscriptions in their render bodies will be refreshed when those subscriptions change, separate from the fulcro rendering mechanism.
Takes a fulcro app and adds support for using subscriptions The components which deref subscriptions in their render bodies will be refreshed when those subscriptions change, separate from the fulcro rendering mechanism. - Adds render middleware to run-in-reaction for class components - Adds cleanup when a component is unmounted - Changes the state atom to be a reagent.ratom/atom - Changes the `optimized-render! algorithm to be the ident-optmized-render algorithm.
(with-subscriptions app)
Takes a fulcro app and adds support for using subscriptions With this version of subscriptions integration with fulcro the intention is that fulcro manages all rendering and subscriptions do not trigger reactive updates - instead they are executed after each fulcro transcation and swap! into the fulcro state atom the derived state that the subscriptions computed (the subscription cache).
Takes a fulcro app and adds support for using subscriptions With this version of subscriptions integration with fulcro the intention is that fulcro manages all rendering and subscriptions do not trigger reactive updates - instead they are executed after each fulcro transcation and swap! into the fulcro state atom the derived state that the subscriptions computed (the subscription cache). - Adds render middleware to run-in-reaction for class components - Adds cleanup when a component is unmounted - Changes the state atom to be a reagent.ratom/atom - Changes the `optimized-render! algorithm to be the ident-optmized-render algorithm.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close