-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Re-render delays in Safari in nested InnerBlocks #30249
Comments
@tlovett1 I have a feeling this may be a similar problem to #30274 If you move the There may also be a similar issue with I see you need to pass a clientId though, which might be difficult if you're just passing a component to the prop. |
I removed the custom |
I was able to reproduce the issue in Chrome by adding more blocks to the It's more consistent in Safari, especially when using "Spotlight mode." In Chrome, delay happens once out of every 5 or 10 selections. |
The issue should be fixed by #30995. I'm no longer able to reproduce the issue when testing with the PR. |
Description
I've encountered an issue in Safari when nested
InnerBlocks
are used. When an inner block is selecting the currently selected block in the editor, it should re-render whenever a new block is selected. In Safari, there is a "lag" such that there is sometimes a second or two delay until one of the inner blocks receives the updated props and is forced to re-render. There is no lag in Chrome.Hopefully this report makes sense. Please let me know if more info is needed.
Step-by-step reproduction instructions
I've created a proof of concept block to reproduce the problem:
Code: https://gist.github.com/tlovett1/7a6ffcf994f85d41821e9469c35fdea4
Screenshots or screen recording (optional)
Video showing the problem: https://user-images.githubusercontent.com/1844351/112491396-a6330f00-8d56-11eb-9cd5-517de03c71aa.mov
WordPress information
Device information
The text was updated successfully, but these errors were encountered: