Skip to content

Commit 2b8579a

Browse files
committed
update
1 parent 943bf96 commit 2b8579a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/routes/reference/secondary-primitives/create-deferred.mdx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ tags:
1111
- updates
1212
version: "1.0"
1313
description: >-
14-
Create a deferred accessor that updates when the browser is idle or when the
15-
timeout is reached.
14+
Create a deferred accessor whose updates are scheduled for later execution or
15+
when the timeout is reached.
1616
---
1717

1818
`createDeferred` returns a deferred accessor for a source accessor.
@@ -75,9 +75,10 @@ Returns an accessor that exposes the deferred value.
7575

7676
## Behavior
7777

78-
- The deferred accessor updates after the browser becomes idle or after `timeoutMs` is reached.
79-
- The returned accessor can lag behind the source accessor.
78+
- The deferred accessor initially reflects the current source value.
79+
- Later updates are deferred through Solid's scheduler until later execution or until `timeoutMs` is reached, so the returned accessor can lag behind the source accessor.
8080
- `equals` controls whether downstream dependents are notified for a new value.
81+
- On the server, `createDeferred` returns the source accessor unchanged.
8182

8283
## Examples
8384

0 commit comments

Comments
 (0)