You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe a problem.
I have dozens of elements that need to be deleted then reinserted and replaced (i.e undo a particular section of document)
elements.forEach((el, index) => {
this.editor.blocks.insert(
el.type,
el.data,
{},
})
Right now, the performance takes seconds for a render to reoccur after this insert.
Describe the solution you'd like. Mockups are welcome.
I'd like a insertMany([...], { startIndex: 10 }) option that would not have a significant performance improvement (hopefully).
Are there any alternatives?
Only way around this is doing less inserts - In my case I have a 1000 blocks in my document.
This discussion was converted from issue #1860 on January 17, 2022 13:18.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have dozens of elements that need to be deleted then reinserted and replaced (i.e undo a particular section of document)
elements.forEach((el, index) => {
this.editor.blocks.insert(
el.type,
el.data,
{},
})
Right now, the performance takes seconds for a render to reoccur after this insert.
I'd like a insertMany([...], { startIndex: 10 }) option that would not have a significant performance improvement (hopefully).
Only way around this is doing less inserts - In my case I have a 1000 blocks in my document.
Beta Was this translation helpful? Give feedback.
All reactions