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

Documents matching: server v3.0.0a1.post1client v3.0.0-alpha.2