File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -35,8 +35,9 @@ const query = queryOptions({
35
35
- When set to ` 'replace' ` , all data will be written to the cache once the stream ends.
36
36
- ` reducer?: (accumulator: TData, chunk: TQueryFnData) => TData `
37
37
- Optional
38
- - A function to reduce the streamed chunks into the final data.
39
- - Defaults to a function that appends chunks to the end of the array.
38
+ - Reduces streamed chunks (` TQueryFnData ` ) into the final data shape (` TData ` ).
39
+ - Default: appends each chunk to the end of the accumulator when ` TData ` is an array.
40
+ - If ` TData ` is not an array, you must provide a custom ` reducer ` .
40
41
- ` initialValue?: TData = TQueryFnData `
41
42
- Optional
42
43
- Defines the initial data to be used while the first chunk is being fetched.
You can’t perform that action at this time.
0 commit comments