Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Editor: Debounce autosave on last edit #10103
This pull request seeks to change the behavior of autosave such that an auto save does not occur until after the delay from the last edit made. Thus, so long as a user continues typing, an autosave will never occur until they are finished typing.
Verify that upon making a change to e.g. the title or content, an autosave occurs after 10 seconds of no action. Verify the implications of this specific behavior in that repeatedly making changes before the 10 seconds interval will reset the timer.
We need to have more control on the autosave feature. You need to understand that for tiny blogs there is no problem with the current implementation of autosave but for big blogs with up to 9 editors/writers all working at the same time, the autosave and the amount it does is overkill.
We DONT NEED that much autosave, we need to limit or disable it and there is no option. Gutenberg should not decide for itself, this needs to be added as an option to the user.
I forgot I'd left this in a half-finished state. This should now be ready for review.
Since the initial commit, I've revised the approach to avoid relying on a non-deterministic value being introduced to the reducer state, instead taking an approach not too much unlike what we have with