You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 -->
0 commit comments