Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

isLoading (useChat) gets stuck on "true" if id changes before streaming starts #819

Open
oalexdoda opened this issue Dec 2, 2023 · 0 comments
Labels
ai/ui bug Something isn't working

Comments

@oalexdoda
Copy link

Description

  1. Use the useChat hook with an id state
  2. Send a request that does a bunch of things prior to the OpenAI request
  3. Switch the chat id prior to the request starting
  4. Switch back to the original chat id
  5. The isLoading variable gets stuck on true for that chat id, even though the stream got cancelled because the ID changed so it can no longer be resumed

Code example

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ai/ui bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants