Skip to content

Commit 1e269ac

Browse files
committed
docs: note that initialValue is returned when the stream yields no values
1 parent 709fad2 commit 1e269ac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/reference/streamedQuery.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ const query = queryOptions({
4040
- If `TData` is not an array, you must provide a custom `reducer`.
4141
- `initialValue?: TData = TQueryFnData`
4242
- Optional
43-
- Defines the initial data to be used while the first chunk is being fetched.
43+
- Defines the initial data to be used while the first chunk is being fetched, and it is also returned when the stream yields no values.
4444
- It is mandatory when custom `reducer` is provided.
4545
- Defaults to an empty array.

0 commit comments

Comments
 (0)