Skip to content

Commit 31e5840

Browse files
committed
update
1 parent 5c821e0 commit 31e5840

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ Accessor used as the observable source.
4242

4343
- **Type:** `Observable<T>`
4444

45-
Returns an object with `subscribe()` and `[Symbol.observable]()`.
45+
Returns an object with `subscribe()` and `[Symbol.observable]()` that returns the same object.
4646

4747
## Behavior
4848

49-
- The returned object is compatible with Observable interop based on `Symbol.observable`.
50-
- Subscriptions receive values from the accessor.
51-
- Observable libraries can consume the returned object through standard Observable interop.
49+
- `subscribe()` accepts either a function observer or an object observer with `next`.
50+
- Each subscription creates an effect over the accessor and returns an object with `unsubscribe()`.
51+
- If subscription happens inside an owned Solid scope, cleanup is also registered on that owner.
5252

5353
## Examples
5454

0 commit comments

Comments
 (0)