@timardex/cluemart-shared 1.4.56 → 1.4.57
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/{chunk-INEGK3OJ.mjs → chunk-77MGTLHY.mjs} +5 -3
- package/dist/{chunk-INEGK3OJ.mjs.map → chunk-77MGTLHY.mjs.map} +1 -1
- package/dist/graphql/index.cjs +4 -2
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +1 -1
- package/dist/graphql/index.d.ts +1 -1
- package/dist/graphql/index.mjs +1 -1
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/index.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/hooks/index.mjs
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -5168,9 +5168,11 @@ var useGetUserActivities = () => {
|
|
|
5168
5168
|
};
|
|
5169
5169
|
return { error, loading, refetch, userActivities };
|
|
5170
5170
|
};
|
|
5171
|
-
var useGetUserResources = () => {
|
|
5171
|
+
var useGetUserResources = (userId) => {
|
|
5172
5172
|
const { loading, error, data, refetch } = (0, import_client39.useQuery)(GET_USER_RESOURCES, {
|
|
5173
|
-
fetchPolicy: "network-only"
|
|
5173
|
+
fetchPolicy: "network-only",
|
|
5174
|
+
skip: !userId,
|
|
5175
|
+
variables: { userId }
|
|
5174
5176
|
});
|
|
5175
5177
|
const userResources = data?.userResources.resources || [];
|
|
5176
5178
|
return { error, loading, refetch, userResources };
|