diff --git a/packages/lexical-website/docs/concepts/updates.md b/packages/lexical-website/docs/concepts/updates.md index 75a10f7785e..5e21d48c336 100644 --- a/packages/lexical-website/docs/concepts/updates.md +++ b/packages/lexical-website/docs/concepts/updates.md @@ -56,9 +56,9 @@ editor.registerUpdateListener(({tags}) => { } }); -editor.registerMutationListener(MyNode, (mutations) => { +editor.registerMutationListener(MyNode, (mutatedNodes, { updateTags }) => { // updateTags contains tags from the current update - if (mutations.updateTags.has(HISTORIC_TAG)) { + if (updateTags.has(HISTORIC_TAG)) { // Handle mutations with historic tag } });