Skip to content

Commit ba86d6f

Browse files
docs(useQuery): add doc for queryKeyHashFn (#2043)
1 parent 4dfcf89 commit ba86d6f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/src/pages/reference/useQuery.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ const result = useQuery({
9494
- `cacheTime: number | Infinity`
9595
- The time in milliseconds that unused/inactive cache data remains in memory. When a query's cache becomes unused or inactive, that cache data will be garbage collected after this duration. When different cache times are specified, the longest one will be used.
9696
- If set to `Infinity`, will disable garbage collection
97+
- `queryKeyHashFn: (queryKey: QueryKey) => string`
98+
- Optional
99+
- If specified, this function is used to hash the `queryKey` to a string.
97100
- `refetchInterval: false | number`
98101
- Optional
99102
- If set to a number, all queries will continuously refetch at this frequency in milliseconds

0 commit comments

Comments
 (0)