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

[v17] Refactor the standard role editor to optimize its performance #51026

Open
wants to merge 2 commits into
base: branch/v17
Choose a base branch
from

Conversation

bl-nero
Copy link
Contributor

@bl-nero bl-nero commented Jan 14, 2025

Backport #50871 to branch/v17

This change makes every role editor section render separately, not
affecting other sections. This is achieved by property memoization. In
order to do it, we switch from managing the standard editor state using
`useState()` to `useReducer()`. The state and action dispatcher are
created with a new `useStandardModel()` function.

Another change required to support memoization in the rendering phase is
memoizing partial validation results.
@bl-nero bl-nero added the no-changelog Indicates that a PR does not require a changelog entry label Jan 14, 2025
@github-actions github-actions bot requested review from gzdunek and kimlisa January 14, 2025 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport no-changelog Indicates that a PR does not require a changelog entry size/md ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants