-
Notifications
You must be signed in to change notification settings - Fork 6
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
Resolve SEO fields lag #2445
Resolve SEO fields lag #2445
Conversation
useDebounce( | ||
() => { | ||
onChange(value, "metaLinkText"); | ||
}, | ||
250, | ||
[value] | ||
); |
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.
I feel like the debounce is a hacky way to speed up performance because all that is being done is delaying computations, it doesn't really touch on the underlying issue which is that way too much is being re-rendered.
Is there truly a need for this debounce that cannot be solved be recomposition? Or is recomposing too large of a scope?
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.
@agalin920 Updated, figured out there were some components re-rendering due to unnecessary dependencies
seo-fields-lag.webm
Closes #2412