@tanstack/ai-react@0.18.0
·
80 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
Minor Changes
-
#900
35946e3- Messages sent while a stream is already in flight are now queued by default and automatically sent once the in-flight stream settles, instead of being silently dropped. This is a behavior change. Restore the previous drop-while-busy behavior withqueue: 'drop'.The behavior is configurable via a new
queueoption, which acceptswhenBusy: 'queue' | 'drop' | 'interrupt',drain: 'fifo' | 'batch',maxSize, andonOverflow, or a custom strategy function for full control.Queued messages are exposed on the hook as
queueand can be cancelled before they send viacancelQueued(id).sendMessagealso accepts a per-call{ whenBusy }override.
Patch Changes
- Updated dependencies [
35946e3]:- @tanstack/ai-client@0.22.0