Add cloneNotNeeded Set, remove depth from dirtySubTrees (#844)

* Add cloneNotNeeded Set, remove depth from dirtySubTrees

* Fix codes

* Fix codes
This commit is contained in:
Dominic Gannaway
2021-11-17 17:01:31 +00:00
committed by acywatson
parent 031981a282
commit c3115fc213
7 changed files with 74 additions and 84 deletions

View File

@ -7,41 +7,41 @@
"5": "insertNodes: cannot insert a non-block into a root node",
"6": "insertNodes: cloned parent clone is not a block",
"7": "insertText: first node is not a text node",
"8": "setEditorState: the editor state is empty. Ensure the editor state's root node never becomes empty.",
"9": "updateDOM: prevInnerDOM is null or undefined",
"10": "updateDOM: innerDOM is null or undefined",
"11": "setFormat: can only be used on non-immutable nodes",
"12": "setStyle: can only be used on non-immutable nodes",
"13": "setTextContent: can only be used on non-immutable text nodes",
"14": "spliceText: can only be used on non-immutable text nodes",
"15": "spliceText: selection not found",
"16": "splitText: can only be used on non-immutable text nodes",
"17": "select: cannot be called on root nodes",
"18": "remove: cannot be called on root nodes",
"19": "replace: cannot be called on root nodes",
"20": "insertBefore: cannot be called on root nodes",
"21": "insertAfter: cannot be called on root nodes",
"22": "rootNode.append: Only block nodes can be appended to the root node",
"23": "createNodeFromParse: type \"%s\" + not found",
"24": "Point.getNode: node not found",
"25": "decorate: base method not extended",
"26": "Cannot use method in read-only mode.",
"27": "Unable to find an active editor state. State helpers or node methods can only be used synchronously during the callback of editor.update() or editorState.read().",
"28": "Unable to find an active editor. This method can only be used synchronously during the callback of editor.update().",
"29": "updateEditor: the pending editor state is empty. Ensure the root not never becomes empty from an update.",
"30": "updateEditor: selection has been lost because the previously selected nodes have been removed and selection wasn't moved to another node. Ensure selection changes after removing/replacing a selected node.",
"31": "createNode: node does not exist in nodeMap",
"32": "reconcileNode: prevNode or nextNode does not exist in nodeMap",
"33": "reconcileNode: parentDOM is null",
"34": "Reconciliation: could not find DOM element for node key \"${key}\"",
"35": "OutlineNode: Node type %s does not implement .clone().",
"36": "Expected node %s to have a parent.",
"37": "Expected node %s to have a parent block.",
"38": "Expected node %s to have a top parent block.",
"39": "getNodesBetween: ancestor is null",
"40": "getLatest: node not found",
"41": "createDOM: base method not extended",
"42": "updateDOM: base method not extended",
"43": "setFlags: can only be used on non-immutable nodes",
"44": "Expected node with key %s to exist but it's not in the nodeMap."
"8": "decorate: base method not extended",
"9": "setEditorState: the editor state is empty. Ensure the editor state's root node never becomes empty.",
"10": "updateDOM: prevInnerDOM is null or undefined",
"11": "updateDOM: innerDOM is null or undefined",
"12": "setFormat: can only be used on non-immutable nodes",
"13": "setStyle: can only be used on non-immutable nodes",
"14": "setTextContent: can only be used on non-immutable text nodes",
"15": "spliceText: can only be used on non-immutable text nodes",
"16": "spliceText: selection not found",
"17": "splitText: can only be used on non-immutable text nodes",
"18": "Point.getNode: node not found",
"19": "createNodeFromParse: type \"%s\" + not found",
"20": "select: cannot be called on root nodes",
"21": "remove: cannot be called on root nodes",
"22": "replace: cannot be called on root nodes",
"23": "insertBefore: cannot be called on root nodes",
"24": "insertAfter: cannot be called on root nodes",
"25": "rootNode.append: Only block nodes can be appended to the root node",
"26": "OutlineNode: Node type %s does not implement .clone().",
"27": "Expected node %s to have a parent.",
"28": "Expected node %s to have a parent block.",
"29": "Expected node %s to have a top parent block.",
"30": "getNodesBetween: ancestor is null",
"31": "getLatest: node not found",
"32": "createDOM: base method not extended",
"33": "updateDOM: base method not extended",
"34": "setFlags: can only be used on non-immutable nodes",
"35": "Expected node with key %s to exist but it's not in the nodeMap.",
"36": "Cannot use method in read-only mode.",
"37": "Unable to find an active editor state. State helpers or node methods can only be used synchronously during the callback of editor.update() or editorState.read().",
"38": "Unable to find an active editor. This method can only be used synchronously during the callback of editor.update().",
"39": "updateEditor: the pending editor state is empty. Ensure the root not never becomes empty from an update.",
"40": "updateEditor: selection has been lost because the previously selected nodes have been removed and selection wasn't moved to another node. Ensure selection changes after removing/replacing a selected node.",
"41": "createNode: node does not exist in nodeMap",
"42": "reconcileNode: prevNode or nextNode does not exist in nodeMap",
"43": "reconcileNode: parentDOM is null",
"44": "Reconciliation: could not find DOM element for node key \"${key}\""
}