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 |
|---|---|---|---|
| app | Ref | yes | A ref containing the app name that is being watched. |
| model | 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