Skip to content

Commit

Permalink
docs(useQuery): add an explanation of isDataEqual option
Browse files Browse the repository at this point in the history
  • Loading branch information
airman5573 committed Jul 17, 2022
1 parent d6cb962 commit 766abd9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/reference/useQuery.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ const result = useQuery({
- Optional
- Defaults to `false`
- If set, any previous `data` will be kept when fetching new data because the query key changed.
- `isDataEqual: (oldData: TData | undefined, newData: TData) => boolean`
- Optional
- This function should return boolean indicating whether to use previous `data` (`true`) or new data (`false`) as a resolved data for the query.
- `structuralSharing: boolean`
- Optional
- Defaults to `true`
Expand Down

0 comments on commit 766abd9

Please sign in to comment.