applesauce-react 0.0.0-next-20250213170222 → 0.0.0-next-20250213191824
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useMemo } from "react";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { of } from "rxjs";
|
|
3
|
+
import { useObservableEagerState } from "observable-hooks";
|
|
4
4
|
import { useQueryStore } from "./use-query-store.js";
|
|
5
5
|
/**
|
|
6
6
|
* Runs and subscribes to a query in the query store
|
|
@@ -13,7 +13,7 @@ export function useStoreQuery(queryConstructor, args) {
|
|
|
13
13
|
if (args)
|
|
14
14
|
return store.createQuery(queryConstructor, ...args);
|
|
15
15
|
else
|
|
16
|
-
return
|
|
16
|
+
return of(undefined);
|
|
17
17
|
}, [args, store]);
|
|
18
|
-
return
|
|
18
|
+
return useObservableEagerState(observable);
|
|
19
19
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "applesauce-react",
|
|
3
|
-
"version": "0.0.0-next-
|
|
3
|
+
"version": "0.0.0-next-20250213191824",
|
|
4
4
|
"description": "React hooks for applesauce",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -48,10 +48,10 @@
|
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"applesauce-accounts": "0.0.0-next-
|
|
52
|
-
"applesauce-content": "0.0.0-next-
|
|
53
|
-
"applesauce-core": "0.0.0-next-
|
|
54
|
-
"applesauce-factory": "0.0.0-next-
|
|
51
|
+
"applesauce-accounts": "0.0.0-next-20250213191824",
|
|
52
|
+
"applesauce-content": "0.0.0-next-20250213191824",
|
|
53
|
+
"applesauce-core": "0.0.0-next-20250213191824",
|
|
54
|
+
"applesauce-factory": "0.0.0-next-20250213191824",
|
|
55
55
|
"nostr-tools": "^2.10.4",
|
|
56
56
|
"observable-hooks": "^4.2.4",
|
|
57
57
|
"react": "^18.3.1",
|