@octanejs/rxjs 0.1.31 → 0.1.33
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 +6 -6
- package/src/Subscribe.tsrx +3 -7
- package/src/bind.ts +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@octanejs/rxjs",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.33",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -38,19 +38,19 @@
|
|
|
38
38
|
"@rx-state/core": "0.1.4"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"octane": "^0.1.51 || ^0.2.0",
|
|
41
|
+
"octane": "^0.1.51 || ^0.2.0 || ^0.3.0",
|
|
42
42
|
"rxjs": "^7.8.2"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@react-rxjs/core": "0.10.8",
|
|
46
46
|
"@react-rxjs/utils": "0.9.7",
|
|
47
|
-
"@tsrx/react": "^0.
|
|
47
|
+
"@tsrx/react": "^0.3.0",
|
|
48
48
|
"esbuild": "^0.28.1",
|
|
49
|
-
"react": "
|
|
50
|
-
"react-dom": "
|
|
49
|
+
"react": "19.2.7",
|
|
50
|
+
"react-dom": "19.2.7",
|
|
51
51
|
"rxjs": "^7.8.2",
|
|
52
52
|
"vitest": "^4.1.10",
|
|
53
|
-
"octane": "0.
|
|
53
|
+
"octane": "0.3.0"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"test": "vitest run"
|
package/src/Subscribe.tsrx
CHANGED
|
@@ -70,18 +70,14 @@ export function Subscribe(props: Props) @{
|
|
|
70
70
|
);
|
|
71
71
|
|
|
72
72
|
@if (props.fallback === undefined) {
|
|
73
|
-
<SubscriptionContext.
|
|
74
|
-
value={owner.current.add}
|
|
75
|
-
>{props.children}</SubscriptionContext.Provider>
|
|
73
|
+
<SubscriptionContext value={owner.current.add}>{props.children}</SubscriptionContext>
|
|
76
74
|
} @else {
|
|
77
75
|
<Suspense fallback={props.fallback}>
|
|
78
|
-
<SubscriptionContext.
|
|
79
|
-
value={owner.current.add}
|
|
80
|
-
>{props.children}</SubscriptionContext.Provider>
|
|
76
|
+
<SubscriptionContext value={owner.current.add}>{props.children}</SubscriptionContext>
|
|
81
77
|
</Suspense>
|
|
82
78
|
}
|
|
83
79
|
}
|
|
84
80
|
|
|
85
81
|
export function RemoveSubscribe(props: { children?: OctaneNode }) @{
|
|
86
|
-
<SubscriptionContext
|
|
82
|
+
<SubscriptionContext value={null}>{props.children}</SubscriptionContext>
|
|
87
83
|
}
|
package/src/bind.ts
CHANGED
|
@@ -27,6 +27,8 @@ export function bind(source: unknown, defaultValue?: unknown): readonly [unknown
|
|
|
27
27
|
const bound = hasDefault
|
|
28
28
|
? state(source as (...args: unknown[]) => Observable<unknown>, defaultValue)
|
|
29
29
|
: state(source as (...args: unknown[]) => Observable<unknown>);
|
|
30
|
+
// The manual provider adapter appends the call-site slot after every
|
|
31
|
+
// authored argument, so a factory's final Symbol remains user data.
|
|
30
32
|
const useBound = (...runtimeArgs: unknown[]) => {
|
|
31
33
|
const [args, slot] = splitSlot(runtimeArgs);
|
|
32
34
|
return useStateObservable(bound(...args), slot, args);
|