Liking cljdoc? Tell your friends :D
All platforms.

com.fulcrologic.fulcro.rendering.keyframe-render

The keyframe optimized render.

The keyframe optimized render.
raw docstring

render!clj/s

(render! app {:keys [force-root? hydrate?] :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 :hydrate? is true it will use the React hydrate functionality (on browsers) to render over server-rendered content in the DOM.

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 true 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 `:hydrate?` is true it will use the React hydrate functionality (on browsers) to render over
server-rendered content in the DOM.

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 `true` from `shouldComponentUpdate`.
sourceraw docstring

render-state!clj/s

(render-state! app state-map)

This function renders given state map over top of the current app. This allows you to render previews of state without actually changing the app state. Used by Inspect for DOM preview. Forces a root-based render with no props diff optimization. The app must already be mounted. Returns the result of render.

This function renders given state map over top of the current app. This allows you to render previews of state **without
actually changing the app state**. Used by Inspect for DOM preview. Forces a root-based render with no props diff optimization.
The app must already be mounted. Returns the result of render.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close