-
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
Block API: save
called more frequently than expected
#9624
Comments
I don't see what the issue is–what is breaking for you? Could you please try reproducing in a vanilla environment? |
@tofumatt Tested with 2017 and no plugins. Same thing. The gif contains the test block and paragraph block. When I type in the paragraph block nothing happens with the test block. But after autosave saves the page then typing in the paragraph block will call the test blocks save function after every change. You can test it simply with the current dev build:
Of course this is not tied to paragraph block, I think after the autosave every blocks Maybe title is bad, nothing is "breaking" it's just working incredibly inefficiently. |
Is this causing a slowdown or issue with the editor? I think extra renders after typing makes sense, we need to re-render the block's state once it's been updated. I'm closing this as invalid because I don't see what the actual issue is. I think this is working as intended. |
Both That being said, with familiarity of when I still wouldn't classify anything as "broken" here, but I do think it's worth exploring why it is being called as often as it is. |
save
called more frequently than expected
With many blocks I'm sure it contributes. Although deeply nested blocks are still very slow when I get rid of this behavior by disabling autosave.
It's rendering the The key point being, this happens only after autosave has triggered. |
closing as a duplicate of #10427 |
Here's the block I used for testing:
Here's what's happening:
I have custom code, theme and plugins though, can anyone reproduce this in a vanilla environment?
The text was updated successfully, but these errors were encountered: