Skip to content

Conversation

@ubmit
Copy link
Contributor

@ubmit ubmit commented Jan 17, 2026

I noticed that multiple docs pages were referring to the old useUIStream hook API, e.g. using isLoading instead of isStreaming. I updated all references to reflect its current API.

@vercel
Copy link
Contributor

vercel bot commented Jan 17, 2026

@ubmit is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

isStreaming, // True while streaming
error, // Any error that occurred
generate, // Function to start generation
send, // Function to start generation
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The streaming documentation references a non-existent 'abort' method that was removed from the useUIStream hook API

Fix on Vercel

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch, again! however, I'm not sure what should be done here. although the abort method is indeed not returned from the useUIStream hook, in this doc example the abort is being used when the "Cancel" button is clicked (as can be seen in the "Aborting Streams" section):

function App() {
  const { isLoading, generate, abort } = useUIStream({
    endpoint: '/api/generate',
  });

  return (
    <div>
      <button onClick={() => generate('Create dashboard')}>
        Generate
      </button>
      {isLoading && (
        <button onClick={abort}>Cancel</button>
      )}
    </div>
  );
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant