-
Notifications
You must be signed in to change notification settings - Fork 64
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
GH-262 - fix issue gui unresponsive when adding a todo #265
base: master
Are you sure you want to change the base?
GH-262 - fix issue gui unresponsive when adding a todo #265
Conversation
}; | ||
} | ||
|
||
static getDerivedStateFromProps(props, state) { | ||
if (state.isTyping) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
every type stroke rerenders the component and causes messages to get the props value. This change tracks when the user is typing and will avoid this situation from happening.
@Kshitij-Katiyar Can you please take a look? |
@hanzei Do we need to review this PR or something else? |
Yes, please review the PR |
@hanzei Looks good to me |
8f8aa57
to
8892ad4
Compare
Fixes: #262
Before:
Screen.Recording.2024-11-10.at.19.01.43.mov
After:
Screen.Recording.2024-11-10.at.19.00.08.mov