> For the complete documentation index, see [llms.txt](https://docs.no-reducer.com/no-reducer/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.no-reducer.com/no-reducer/no-reducer-actions/update.md).

# update

![](https://2096029297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa8hQdsN7Pv00B1Pt9tuc%2Fuploads%2FvjnpbwpX0VXNH8S4RO0o%2F68747470733a2f2f766e73656174746c652e636f6d2f64796e616d6963526564756365722f55706461746549732e504e47.png?alt=media\&token=12efd785-9739-40f6-bc79-6cf86fa5a06a)

The difference between **`replace`** and **`update`** is the `replace` will remove the current object and place another object to its position. The `update` is just to change the attribute ( `value` ) based on the object's key.

Update the whole object by writing down the name of it. You can also use [`destination path`](/no-reducer/no-reducer-actions/destination-path.md) to point to the object you want to update.

```javascript
dispatch(update('DESTINATION', {YOUR:OBJECT}))
```

**Example**: Update website of user

```javascript
dispatch(update('User', { website: "crawfish.com" }))
```

<figure><img src="https://2096029297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa8hQdsN7Pv00B1Pt9tuc%2Fuploads%2F3A3iffhXS9ailac0qM4F%2F68747470733a2f2f766e73656174746c652e636f6d2f64796e616d6963526564756365722f557064617465416e4f626a656374322e706e67.png?alt=media&amp;token=67f37096-5459-4891-a09c-f3ba0ce7cba6" alt=""><figcaption></figcaption></figure>

<br>

\ <br>
