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

reload should cancel previous request #2020

Open
buesing opened this issue Jun 19, 2024 · 1 comment
Open

reload should cancel previous request #2020

buesing opened this issue Jun 19, 2024 · 1 comment
Labels

Comments

@buesing
Copy link

buesing commented Jun 19, 2024

Description

If you have an API route that is taking very long to respond, then call reload, the first request is not cancelled. This leads to a situation where the first response will start streaming, then when the second one (from the reload call) comes in, it will overwrite the first response, leading to confusing behavior and UI.

IMO the first request should be cancelled in this situation.

Code example

No response

Additional context

No response

@lgrammel lgrammel added the ai/ui label Jun 19, 2024
@BrianHung
Copy link
Contributor

Does calling stop before reload work as a temporary measure?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants