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.
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.