@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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@portabletext/editor",
3
- "version": "1.43.0",
3
+ "version": "1.43.1",
4
4
  "description": "Portable Text Editor made in React",
5
5
  "keywords": [
6
6
  "sanity",
@@ -526,7 +526,7 @@ async function* getBlocks({
526
526
  }) {
527
527
  let index = 0
528
528
  for await (const block of slateValue) {
529
- if (streamBlocks) {
529
+ if (streamBlocks && index % 10 === 0) {
530
530
  await new Promise<void>((resolve) => setTimeout(resolve, 0))
531
531
  }
532
532
  yield [block, index] as const