Skip to content

Commit

Permalink
docs(react-query): update signature of useQuery's `notifyOnChangePr…
Browse files Browse the repository at this point in the history
…ops` option
  • Loading branch information
winghouchan committed Jul 17, 2024
1 parent 0931abd commit 43f0722
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/framework/react/reference/useQuery.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ const {
- If set to `false`, the query will not refetch on reconnect.
- If set to `"always"`, the query will always refetch on reconnect.
- If set to a function, the function will be executed with the query to compute the value
- `notifyOnChangeProps: string[] | "all" | (() => string[] | "all")`
- `notifyOnChangeProps: string[] | "all" | (() => string[] | "all" | undefined)`
- Optional
- If set, the component will only re-render if any of the listed properties change.
- If set to `['data', 'error']` for example, the component will only re-render when the `data` or `error` properties change.
Expand Down

0 comments on commit 43f0722

Please sign in to comment.