---
url: "https://vueda.dev/v3/reference/api/js/use/useLinkModelView/functions/useLinkModelView.md"
title: "useLinkModelView"
---

# 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

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| <span id="param-props">props</span> | `object` | yes | The props. |

#### props Properties

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| <span id="param-props-app">app</span> | `string` |  |  |  |
| <span id="param-props-model">model</span> | `string` |  |  |  |
| <span id="param-props-pk">pk</span> | `string \| string[]` |  |  |  |
| <span id="param-props-view">view</span> | `string` |  |  |  |

### Returns

`The link model view state.`

## Source

`client/lib/use/useLinkModelView.js:29`
