Skip to content

@ai-sdk/react@3.0.343

Choose a tag to compare

@github-actions github-actions released this 30 Nov 18:57
· 3688 commits to main since this release
3495be7

Patch Changes

  • 380f2e1: fix(react): abort chats when their useChat id changes during a stream

    The hook now stops the chat it created when that chat is replaced (for example
    after an id change) or when the hook unmounts, which aborts its in-flight
    request. Pass a chat instance to keep a stream alive across unmounts.

    • ai@6.0.340