The keyframe optimized render.
The keyframe optimized render.
(render! app {:keys [force-root?] :as options})
Render the UI. The keyframe render runs a full UI query and then asks React to render the root component.
The optimizations for this kind of render are purely those provided by defsc
's default
shouldComponentUpdate, which causes component to act like React PureComponent (though the props compare in cljs
is often faster).
If :force-root? true
is included in the options map then not only will this do a keyframe update, it will also
force all components to return false
from shouldComponentUpdate
.
Render the UI. The keyframe render runs a full UI query and then asks React to render the root component. The optimizations for this kind of render are purely those provided by `defsc`'s default shouldComponentUpdate, which causes component to act like React PureComponent (though the props compare in cljs is often faster). If `:force-root? true` is included in the options map then not only will this do a keyframe update, it will also force all components to return `false` from `shouldComponentUpdate`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close