mirror of
https://github.com/facebook/lexical.git
synced 2025-08-06 16:39:33 +08:00
Use for...of for performance optimizations (#1509)
* Use for...of for performance optimizations * Fix ignores * Remove console times
This commit is contained in:

committed by
acywatson

parent
7dbba00306
commit
db26e25d7a
@ -88,7 +88,6 @@ export default function TablePlugin(): React$Node {
|
||||
const tableSelections = new Map<NodeKey, TableSelection>();
|
||||
|
||||
return editor.addListener('mutation', TableNode, (nodeMutations) => {
|
||||
// eslint-disable-next-line no-for-of-loops/no-for-of-loops
|
||||
for (const [nodeKey, mutation] of nodeMutations) {
|
||||
if (mutation === 'created') {
|
||||
editor.update(() => {
|
||||
|
Reference in New Issue
Block a user