Skip to content

Docs mismatch: useUIStream API differs between docs site and npm package #55

@grgelsec

Description

@grgelsec

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',
  });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions