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
Describe the bug
Setting state of the parent widget dismounts [ChatListWidget] which disposes scroll controller prematurely, causing the following error:
A ScrollController was used after being disposed.
To Reproduce
Steps to reproduce the behavior:
Create a ChatView inside a StatefulWidget
Update the state of the parent widget - for example update the state of the ChatView from loading to hasMessages and back again.
When the ChatListWidget gets dismounted and disposed, the scrollScroll gets disposed of, even though it still exist in the chatController, which lives rent free in the parent widget's state.
Describe the bug
Setting state of the parent widget dismounts [ChatListWidget] which disposes scroll controller prematurely, causing the following error:
To Reproduce
Steps to reproduce the behavior:
I've created a demo app to this error: https://github.com/lhengl/chatview_errors
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
I've created a demo app to this error: https://github.com/lhengl/chatview_errors
Desktop (please complete the following information):
N/A
Smartphone (please complete the following information):
Additional context
N/A
The text was updated successfully, but these errors were encountered: