Closed
Description
Description
- Go to the solid openai chat example
- Run via
pnpm run dev
- Go to any of the chat pages
- Generate enough messages to have to scroll within the chat window
- Notice when submitting a new message that the window resets to the top scroll position
Code example
No response
AI provider
@ai-sdk/solid - latest
Additional context
Normally I would submit a fix for a problem like this but I am short on time and cannot.
My guesses for why this is happening is due to the way the chat messages are updating. SolidJS uses referential equality in their <For />
component so if the messages list is being recomputed via a spread operator, it could cause a complete rerender which would cause the scrolling.