Skip to content

Commit 43f0722

Browse files
committed
docs(react-query): update signature of useQuery's notifyOnChangeProps option
1 parent 0931abd commit 43f0722

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/framework/react/reference/useQuery.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ const {
130130
- If set to `false`, the query will not refetch on reconnect.
131131
- If set to `"always"`, the query will always refetch on reconnect.
132132
- If set to a function, the function will be executed with the query to compute the value
133-
- `notifyOnChangeProps: string[] | "all" | (() => string[] | "all")`
133+
- `notifyOnChangeProps: string[] | "all" | (() => string[] | "all" | undefined)`
134134
- Optional
135135
- If set, the component will only re-render if any of the listed properties change.
136136
- If set to `['data', 'error']` for example, the component will only re-render when the `data` or `error` properties change.

0 commit comments

Comments
 (0)