You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The renderHelper only makes some validating, and insert prompts and answers, it scrolls, cool, but when i nav to Dashboard, and comeback to Home, the scroll position is not saved, it at top
I will provide a Codesandbox later, but i don't know if i can recreate the exact thing, because it's a bigger project, with many things rappening on the chat.
But i think the scroll part is this, the #chatContainer, render on page load, and stays there forever, even if has no messages, so the reference to the ElementScrollRestoration exists
The text was updated successfully, but these errors were encountered:
I tried to use it, with React router v6
so, i have router config with createBrowserRouter:
then in the Home component i'm rendering a chat:
The
renderHelper
only makes some validating, and insert prompts and answers, it scrolls, cool, but when i nav to Dashboard, and comeback to Home, the scroll position is not saved, it at topI will provide a Codesandbox later, but i don't know if i can recreate the exact thing, because it's a bigger project, with many things rappening on the chat.
But i think the scroll part is this, the #chatContainer, render on page load, and stays there forever, even if has no messages, so the reference to the
ElementScrollRestoration
existsThe text was updated successfully, but these errors were encountered: