Skip to content

Commit d5d5c6f

Browse files
committed
Incorporate notes from #592
1 parent 2d32524 commit d5d5c6f

File tree

1 file changed

+3
-2
lines changed
  • src/routes/reference/reactive-utilities

1 file changed

+3
-2
lines changed

src/routes/reference/reactive-utilities/batch.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ in a few cases:
6464

6565
* Within [`createEffect`](/reference/basic-reactivity/create-effect)
6666
and [`onMount`](/reference/lifecycle/on-mount)
67+
(unless they are outside a [root](/reference/reactive-utilities/create-root))
6768
* Within the [setter of a store](/reference/store-utilities/create-store#setter)
6869
(which can update several properties at once)
6970
* Within array methods (e.g. `Array.prototype.splice`) of a
@@ -72,8 +73,8 @@ in a few cases:
7273

7374
These save you from having to use `batch` yourself in many cases.
7475
For the most part, automatic batching should be transparent to you,
75-
because accessing a memo will cause it to recompute if it is out of date.
76-
For example:
76+
because accessing a memo will cause it to recompute if it is out of date
77+
(as of Solid 1.4). For example:
7778

7879
```ts
7980
batch(() => {

0 commit comments

Comments
 (0)