@portabletext/editor 1.43.0 → 1.43.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2236,7 +2236,7 @@ async function* getBlocks({
|
|
|
2236
2236
|
}) {
|
|
2237
2237
|
let index = 0;
|
|
2238
2238
|
for await (const block of slateValue)
|
|
2239
|
-
streamBlocks && await new Promise((resolve) => setTimeout(resolve, 0)), yield [block, index], index++;
|
|
2239
|
+
streamBlocks && index % 10 === 0 && await new Promise((resolve) => setTimeout(resolve, 0)), yield [block, index], index++;
|
|
2240
2240
|
}
|
|
2241
2241
|
function syncBlock({
|
|
2242
2242
|
context,
|