Commit bbe55b7
authored
fix(tanstack-query): set stream query to success immediately after stream resolves (#1202)
Previously, the query remained in a pending/undefined state until the
first chunk was yielded. Now, after successfully resolving the stream
promise, the query is immediately set to an empty array (success state)
before iterating through chunks.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* Enhanced streaming query refetch modes with intelligent cache handling
(reset, append, replace options)
* Improved chunk limit enforcement during parallel streaming scenarios
* **Bug Fixes**
* Refined abort signal handling to ensure proper cleanup during
streaming operations
* Fixed cache state management during edge cases and error conditions
* **Tests**
* Expanded test coverage for streaming configurations and refetch
behaviors
* Added comprehensive tests for abort handling and stream edge cases
<!-- end of auto-generated comment: release notes by coderabbit.ai -->1 parent 9ad5fd4 commit bbe55b7
File tree
2 files changed
+518
-358
lines changed- packages/tanstack-query/src
2 files changed
+518
-358
lines changed
0 commit comments