-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Try reducing paragraph block rerendering #48460
Conversation
Size Change: +137 B (0%) Total Size: 1.33 MB
ℹ️ View Unchanged
|
@@ -297,10 +299,11 @@ const applyWithSelect = withSelect( ( select, { clientId, rootClientId } ) => { | |||
// access the block prop. | |||
// Ideally these blocks would rely on the clientId prop only. | |||
// This is kept for backward compatibility reasons. | |||
block, | |||
// block, |
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.
To do: proxy block as well.
@jsnajdr Sorry I missed your later comments and accidentally forced pushed my changes over yours. Feel free to force push the changes you made again if they were different. It still doesn't explain it fully to me, I was getting better improvements in #48420 with block filters, all of which are now no longer called on type with this PR. But yes, there's many components still re-rendering unnecessarily and that should be addressed. I'm aware of the rich text toolbar buttons re-rendering in fixed toolbar mode, I'll try to address it separately, but this doesn't contribute to the current perf metrics. |
How do you add a log point to the place where it's collecting the highlights? |
My commit was fixing the |
In devtools debugger, look at the scripts from the React Developer Tools, open the this.emit('traceUpdates', nodes); On this line, set a log point that logs a copy of |
What?
The amount of time React spends rendering is significantly less. While I see an improvement in manual profiling, I don't see the same result in the performance tests and I'm not sure why.
Why?
How?
Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast