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

Resolve SEO fields lag #2445

Merged
merged 8 commits into from
Jan 10, 2024
Merged

Resolve SEO fields lag #2445

merged 8 commits into from
Jan 10, 2024

Conversation

finnar-bin
Copy link
Contributor

seo-fields-lag.webm

Closes #2412

@finnar-bin finnar-bin added the bug Something isn't working label Jan 10, 2024
@finnar-bin finnar-bin requested a review from agalin920 January 10, 2024 04:04
@finnar-bin finnar-bin self-assigned this Jan 10, 2024
Comment on lines 16 to 22
useDebounce(
() => {
onChange(value, "metaLinkText");
},
250,
[value]
);
Copy link
Contributor

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?

Copy link
Contributor Author

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

@finnar-bin finnar-bin requested a review from agalin920 January 10, 2024 04:57
@shrunyan shrunyan merged commit 439be70 into master Jan 10, 2024
1 check failed
@shrunyan shrunyan deleted the fix/2412-seo-fields-lag branch January 10, 2024 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Content: SEO Fields are slower than expected (lots of lag)
3 participants