Liking cljdoc? Tell your friends :D

inertia.page

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.
raw docstring

build-pageclj

(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
sourceraw docstring

deep-resolveclj

(deep-resolve v)

Resolves fns and nested Props anywhere inside v.

Resolves fns and nested `Prop`s anywhere inside `v`.
sourceraw docstring

(header req h)
source

inertia-request?clj

(inertia-request? req)
source

key->strclj

(key->str k)
source

partial-reload?clj

(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.
sourceraw docstring

request-urlclj

(request-url req)

Path plus query string, as the page object's url.

Path plus query string, as the page object's `url`.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close