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

[BUG] Answer Section rerenders and show loader when Related Section is streaming and showing loader #343

Open
2 tasks done
mhshahidf opened this issue Sep 23, 2024 · 1 comment

Comments

@mhshahidf
Copy link

mhshahidf commented Sep 23, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Vercel Runtime Logs

  • I have checked the Vercel Runtime Logs for errors (if applicable)

Current Behavior

On the Search page when Answer Section has finished loading and the Related Section is streaming it also rerenders and show loader on Answer section.

Expected Behavior

Only the current streaming section should show the loader.

Steps To Reproduce

  1. Write a prompt, Submit and go to Search page.
  2. Wait for the Search Related section to start loading
  3. You will see the Answer Section also shows the loader.

Environment

- OS: Mac
- Browser: Chrome

Anything else?

Screenshot 2024-09-24 at 1 49 29 AM

Please let me know if anyone is facing or had faced this issue and what was the solution to it.
I already looked into the AnswerSection and SearchRelated sections component and other required components but didn't found the issue. Streaming code base Seems confusing.

@mhshahidf mhshahidf changed the title [BUG] <title> Answer Section rerenders and show loader when Related Section is streaming and showing loader [BUG] Answer Section rerenders and show loader when Related Section is streaming and showing loader Sep 24, 2024
@miurla
Copy link
Owner

miurla commented Oct 24, 2024

The re-rendering issue is related to the current implementation of AI SDK RSC. We are planning a migration: #368

This issue should be resolved once the migration is completed.

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

No branches or pull requests

2 participants