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

fix(app-page-builder): separate state observers for better performance #3695

Merged
merged 5 commits into from
Nov 10, 2023

Conversation

Pavel910
Copy link
Collaborator

Changes

This PR separates observers into 2 useEffect hooks, to optimize switches between loading states. We don't want to update state with page blocks if they didn't change, and this makes a major impact on performance. Loading transitions are now instant, and page blocks only update when they've actually changed.

How Has This Been Tested?

Manually.

@Pavel910 Pavel910 self-assigned this Nov 10, 2023
@Pavel910 Pavel910 merged commit fa1befb into next Nov 10, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant