Builds the Inertia v3 page object from a Ring request and a set of props. Pure: no I/O beyond calling the prop fns that end up in the response.
Builds the Inertia v3 page object from a Ring request and a set of props. Pure: no I/O beyond calling the prop fns that end up in the response.
(build-page req
component
{:keys [props shared errors version flash encrypt-history
clear-history preserve-fragment]})Returns the page object (a map with keyword keys) for component.
opts: :props the handler's props :shared shared props; handler props win on key collisions :errors validation errors map (nil means {}) :version asset version string :flash flash data map, emitted only when non-empty :encrypt-history, :clear-history, :preserve-fragment booleans
Returns the page object (a map with keyword keys) for `component`.
opts:
:props the handler's props
:shared shared props; handler props win on key collisions
:errors validation errors map (nil means {})
:version asset version string
:flash flash data map, emitted only when non-empty
:encrypt-history, :clear-history, :preserve-fragment booleans(deep-resolve v)Resolves fns and nested Props anywhere inside v.
Resolves fns and nested `Prop`s anywhere inside `v`.
(partial-reload? req component)True when the request is a partial reload of component. A partial reload
aimed at a different component is answered as a full visit.
True when the request is a partial reload of `component`. A partial reload aimed at a different component is answered as a full visit.
(request-url req)Path plus query string, as the page object's url.
Path plus query string, as the page object's `url`.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |