For step 4 in the quick start, the docs show the incorrect destructure for useUIStream.
Current docs:
const { tree, isLoading, generate } = useUIStream({
endpoint: '/api/generate',
});
here
The npm README and actual package types use:
const { tree, isStreaming, error, send, clear } = useUIStream({
api: '/api/generate',
});