Skip to content

Commit

Permalink
Added the word successfully to highlight that onComplete is called wh…
Browse files Browse the repository at this point in the history
…en query succeeds and has no errors
  • Loading branch information
eugenioenko authored Jul 13, 2022
1 parent db33414 commit 699cdd5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/fetching/mutations.md
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ allowing you to execute code when a specific event occurs.

### `onComplete`

This callback gets called when the mutation completes execution.
This callback gets called when the mutation successfully completes execution.

```ts
createNote = useMutation(this, () => [
Expand Down
2 changes: 1 addition & 1 deletion docs/fetching/queries.md
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ allowing you to execute code when a specific event occurs.

### `onComplete`

This callback gets called when the query completes execution and when the
This callback gets called when the query successfully completes execution and when the
cache associated with this query is updated.

```js
Expand Down

0 comments on commit 699cdd5

Please sign in to comment.