> For the complete documentation index, see [llms.txt](https://vytautas.gitbook.io/ng-state/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://vytautas.gitbook.io/ng-state/core-concepts/store/form-manager-plugin/shouldupdatestate-hook.md).

# shouldUpdateState hook

n some cases you might need to postpone state update to some time for example until field is valid. In this case you can do use `shouldUpdateState` method

```typescript
const form = this.store.select(['my-form-state-path']).form
    .bind(myForm)
    .shouldUpdateState(this.shouldUpdateState);

```

```typescript
shouldUpdateState = (params: ShoulUpdateStateParams) => {
    return true;
}
```

#### ShouldUpdateStateParams:

* form: `FormGroupLike`  form that has being synced
* state: `any` - state before update
* value: `any` - current value

{% hint style="info" %}
This event will not be triggered if you are updating form state from the code manually
{% endhint %}
