Skip to content

Commit

Permalink
Merge pull request #4639 from WiXSL/fix-docs-usemutation
Browse files Browse the repository at this point in the history
Fix useQuery being incorrectly referenced in useMutation definition docs.
  • Loading branch information
fzaninotto authored Apr 5, 2020
2 parents cde5a39 + 9ed9460 commit a8ef372
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/Actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,13 +156,13 @@ const ApproveButton = ({ record }) => {
};
```

`useQuery` expects a Query argument with the following keys:
`useMutation` expects a Query argument with the following keys:

- `type`: The method to call on the Data Provider, e.g. `update`
- `resource`: The Resource name, e.g. "posts"
- `params`: The query parameters. Depends on the query type.

The return value of `useQuery` is an array with the following items:
The return value of `useMutation` is an array with the following items:

- A callback function
- An object representing the query state, using the following keys
Expand Down

0 comments on commit a8ef372

Please sign in to comment.