@timardex/cluemart-shared 1.4.54 → 1.4.55

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.mjs CHANGED
@@ -3743,15 +3743,14 @@ var useGetEventByPlaceId = (googlePlaceId) => {
3743
3743
  };
3744
3744
  var useGetEventsByRegion = (region, options) => {
3745
3745
  const { onlyClaimed, limit, offset } = options || {};
3746
+ const variables = {
3747
+ options: limit !== void 0 || offset !== void 0 || onlyClaimed !== void 0 ? { limit, offset, onlyClaimed } : void 0,
3748
+ region
3749
+ };
3746
3750
  const { loading, error, data, refetch, fetchMore } = useQuery2(GET_EVENTS_BY_REGION, {
3747
- fetchPolicy: "no-cache",
3751
+ fetchPolicy: "network-only",
3748
3752
  skip: !region,
3749
- variables: {
3750
- limit,
3751
- offset,
3752
- onlyClaimed,
3753
- region
3754
- }
3753
+ variables
3755
3754
  });
3756
3755
  const eventsByRegion = data?.eventsByRegion || [];
3757
3756
  return {