Skip to content

Commit

Permalink
Refactor: Add comments to clarify the purpose of `__unstableMarkNextC…
Browse files Browse the repository at this point in the history
…hangeAsNotPersistent`
  • Loading branch information
yogeshbhutkar committed Jan 24, 2025
1 parent c053279 commit 98cbba7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/block-library/src/spacer/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,8 @@ const SpacerEdit = ( {
};

useEffect( () => {
// This ensures the next change is not marked as persistent
// which lets the user undo the change.
__unstableMarkNextChangeAsNotPersistent();

if (
Expand Down

0 comments on commit 98cbba7

Please sign in to comment.