Skip to content

useLinkModelView ​

Overview ​

Computes a navigable href and disabled state for a model view action, disabling the link when a required PK is absent.

Signature ​

useLinkModelView(props)

Parameters ​

NameTypeRequiredDescription
propsobjectyesThe props.

props Properties ​

NameTypeRequiredDefaultDescription
appstring
modelstring
pkstring | string[]
viewstring

Returns ​

The link model view state.

Source ​

client/lib/use/useLinkModelView.js:29