Skip to content

Commit

Permalink
Fix typo (#64)
Browse files Browse the repository at this point in the history
* Fix typo

* Update pages/docs/mutation.md

Co-authored-by: Paco <[email protected]>
  • Loading branch information
cfischer and pacocoursey authored Jan 5, 2021
1 parent 464ea35 commit d436942
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/docs/mutation.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ mutate('/api/user', updateUser(newUser)) // `updateUser` is a Promise of the req

Sometimes, you want to update a part of your data based on the current data.

With `mutate`, you can pass an async function which will receive the current cached value, if any, and let you return an updated document.
With `mutate`, you can pass an async function which will receive the current cached value, if any, and returns an updated document.

```jsx
mutate('/api/todos', async todos => {
Expand Down

1 comment on commit d436942

@vercel
Copy link

@vercel vercel bot commented on d436942 Jan 5, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.