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

# useModelFilterInitialValues

## Overview

Returns the initial values for the filters of a model, so that a blank form can be created, without fields being mutated
 immediately by coercion of values, causing a form to be dirty.

## Signature

`useModelFilterInitialValues(app, model)`

### Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| <span id="param-app">app</span> | `Ref` | yes | A ref containing the app name that is being watched. |
| <span id="param-model">model</span> | `Ref` | yes | A ref containing the model name that is being watched. |

### Returns

`Readonly`

An object containing the initial values for the model.

## Source

`client/lib/use/useModelInitialValues.js:177`
