applesauce-react 0.0.0-next-20250213173056 → 0.0.0-next-20250213194606

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 { EMPTY } from "rxjs";
3
- import { useObservable } from "./use-observable.js";
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 EMPTY;
16
+ return of(undefined);
17
17
  }, [args, store]);
18
- return useObservable(observable);
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-20250213173056",
3
+ "version": "0.0.0-next-20250213194606",
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-20250213173056",
52
- "applesauce-content": "0.0.0-next-20250213173056",
53
- "applesauce-core": "0.0.0-next-20250213173056",
54
- "applesauce-factory": "0.0.0-next-20250213173056",
51
+ "applesauce-accounts": "0.0.0-next-20250213194606",
52
+ "applesauce-content": "0.0.0-next-20250213194606",
53
+ "applesauce-core": "0.0.0-next-20250213194606",
54
+ "applesauce-factory": "0.0.0-next-20250213194606",
55
55
  "nostr-tools": "^2.10.4",
56
56
  "observable-hooks": "^4.2.4",
57
57
  "react": "^18.3.1",