@panneau/data 4.0.45 → 4.0.48
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 +2 -3
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -8,7 +8,6 @@ import { useQuery, keepPreviousData, useMutation, QueryClient, QueryClientProvid
|
|
|
8
8
|
import { c } from 'react/compiler-runtime';
|
|
9
9
|
import isArray from 'lodash/isArray';
|
|
10
10
|
import isObject from 'lodash/isObject';
|
|
11
|
-
import { isObject as isObject$1 } from 'lodash';
|
|
12
11
|
import isString from 'lodash/isString';
|
|
13
12
|
|
|
14
13
|
function useItem(scope, id, loader, t0) {
|
|
@@ -861,7 +860,7 @@ function useResourceDestroy(t0, t1, t2) {
|
|
|
861
860
|
t3 = $[1];
|
|
862
861
|
}
|
|
863
862
|
const options = t3;
|
|
864
|
-
const providedResource = usePanneauResource(id !== null && !isObject
|
|
863
|
+
const providedResource = usePanneauResource(id !== null && !isObject(id) ? resource : null);
|
|
865
864
|
const contextResource = useResource();
|
|
866
865
|
const finalResource = providedResource || contextResource;
|
|
867
866
|
const finalId = providedResource !== null ? id : resource;
|
|
@@ -938,7 +937,7 @@ function useResourceItem(resource, t0, t1) {
|
|
|
938
937
|
const id = t0 === undefined ? null : t0;
|
|
939
938
|
const opts = t1 === undefined ? null : t1;
|
|
940
939
|
const api = useApi();
|
|
941
|
-
const providedResource = usePanneauResource(id !== null && !isObject
|
|
940
|
+
const providedResource = usePanneauResource(id !== null && !isObject(id) ? resource : null);
|
|
942
941
|
const contextResource = useResource();
|
|
943
942
|
const finalResource = providedResource || contextResource;
|
|
944
943
|
const finalId = providedResource !== null ? id : resource;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panneau/data",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.48",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"@babel/runtime": "^7.28.6",
|
|
63
63
|
"@folklore/fetch": "^0.1.21",
|
|
64
64
|
"@folklore/routes": "^0.2.44",
|
|
65
|
-
"@panneau/core": "^4.0.
|
|
65
|
+
"@panneau/core": "^4.0.48",
|
|
66
66
|
"@tanstack/react-query": "^5.100.9",
|
|
67
67
|
"lodash": "^4.17.21",
|
|
68
68
|
"query-string": "^9.0.0"
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"publishConfig": {
|
|
71
71
|
"access": "public"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "668d90a05a094fe55fcea760df3f9c294c6cbb31"
|
|
74
74
|
}
|