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

Fixed issue with isInitialized state flag that breaks rendering of message container in some cases. #2443

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Jlexyc
Copy link

@Jlexyc Jlexyc commented Sep 15, 2023

Due to using useState hook for the whole state there is an edge case when state flag isInitialized was reset with old value false just after it was set to true due to bad state managements.
Also added useCallback to optimise a bit code. (Optimised where it doesn't require big updates)

Optimised component with useCallback.
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

Successfully merging this pull request may close these issues.

None yet

2 participants