@arcote.tech/arc-react 0.0.7 → 0.0.9
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 +0 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -118,7 +118,6 @@ class IDBAdapter {
|
|
|
118
118
|
}
|
|
119
119
|
// reactModel.tsx
|
|
120
120
|
import {
|
|
121
|
-
ArcCollectionQuery,
|
|
122
121
|
model
|
|
123
122
|
} from "@arcote.tech/arc";
|
|
124
123
|
import {createContext, useContext, useEffect, useRef, useState} from "react";
|
|
@@ -157,8 +156,6 @@ var reactModel = (context, dependecies) => {
|
|
|
157
156
|
const [loading, setLoading] = useState(true);
|
|
158
157
|
useEffect(() => {
|
|
159
158
|
const query = context2.client.query(queryBuilder);
|
|
160
|
-
if (!(query instanceof ArcCollectionQuery))
|
|
161
|
-
throw new Error;
|
|
162
159
|
query.result$.subscribe((result2) => {
|
|
163
160
|
setResult(result2);
|
|
164
161
|
setLoading(false);
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"type": "module",
|
|
7
|
-
"version": "0.0.
|
|
7
|
+
"version": "0.0.9",
|
|
8
8
|
"private": false,
|
|
9
9
|
"author": "Przemysław Krasiński [arcote.tech]",
|
|
10
10
|
"description": "React client for the Arc framework, providing utilities for querying data and executing commands, enhancing the development of reactive and efficient user interfaces.",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"publish": "bun run build && npm publish --access=public"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@arcote.tech/arc": "0.0.
|
|
19
|
+
"@arcote.tech/arc": "0.0.6",
|
|
20
20
|
"react": "^18.3.1",
|
|
21
21
|
"rxjs": "^7.8.1"
|
|
22
22
|
},
|