@taladb/react 0.6.0 → 0.7.3

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/dist/index.js CHANGED
@@ -58,7 +58,7 @@ function useFind(collection, filter) {
58
58
  const subscribe = (0, import_react3.useCallback)(
59
59
  (notify) => {
60
60
  snapshotRef.current = { data: snapshotRef.current.data, loading: true };
61
- return collection.subscribe(filter, (docs) => {
61
+ return collection.subscribe(filter ?? {}, (docs) => {
62
62
  snapshotRef.current = { data: docs, loading: false };
63
63
  notify();
64
64
  });
package/dist/index.mjs CHANGED
@@ -28,7 +28,7 @@ function useFind(collection, filter) {
28
28
  const subscribe = useCallback(
29
29
  (notify) => {
30
30
  snapshotRef.current = { data: snapshotRef.current.data, loading: true };
31
- return collection.subscribe(filter, (docs) => {
31
+ return collection.subscribe(filter ?? {}, (docs) => {
32
32
  snapshotRef.current = { data: docs, loading: false };
33
33
  notify();
34
34
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taladb/react",
3
- "version": "0.6.0",
3
+ "version": "0.7.3",
4
4
  "description": "React hooks for TalaDB — useFind, useFindOne, and useCollection for React and React Native",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -41,7 +41,7 @@
41
41
  },
42
42
  "peerDependencies": {
43
43
  "react": ">=18.0.0",
44
- "taladb": "0.6.0"
44
+ "taladb": "0.7.3"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@testing-library/react": "^16.0.0",
@@ -53,7 +53,7 @@
53
53
  "tsup": "^8.0.0",
54
54
  "typescript": "^5.9.3",
55
55
  "vitest": "^3.2.0",
56
- "taladb": "0.6.0"
56
+ "taladb": "0.7.3"
57
57
  },
58
58
  "scripts": {
59
59
  "build": "tsup",