@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.
@@ -1,5 +1,5 @@
1
1
  import "../chunk-KIWJIODL.mjs";
2
- import "../chunk-INEGK3OJ.mjs";
2
+ import "../chunk-77MGTLHY.mjs";
3
3
  import "../chunk-DWO35OY4.mjs";
4
4
  import "../chunk-I7WE3EBR.mjs";
5
5
  import {
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 };