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
Copy file name to clipboardExpand all lines: src/routes/reference/secondary-primitives/create-deferred.mdx
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,8 +11,8 @@ tags:
11
11
- updates
12
12
version: "1.0"
13
13
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.
16
16
---
17
17
18
18
`createDeferred` returns a deferred accessor for a source accessor.
@@ -75,9 +75,10 @@ Returns an accessor that exposes the deferred value.
75
75
76
76
## Behavior
77
77
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.
80
80
-`equals` controls whether downstream dependents are notified for a new value.
81
+
- On the server, `createDeferred` returns the source accessor unchanged.
0 commit comments