@timardex/cluemart-shared 1.0.90 → 1.0.92

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
@@ -2824,29 +2824,18 @@ var useCreateBulkNotifications = () => {
2824
2824
  };
2825
2825
  var useMarkNotificationRead = () => {
2826
2826
  const [markNotificationRead, { loading, error }] = useMutation6(
2827
- MARK_NOTIFICATION_READ,
2828
- {
2829
- refetchQueries: [{ query: GET_USER_NOTIFICATIONS }]
2830
- }
2827
+ MARK_NOTIFICATION_READ
2831
2828
  );
2832
2829
  return { error, loading, markNotificationRead };
2833
2830
  };
2834
2831
  var useMarkAllNotificationsRead = () => {
2835
2832
  const [markAllNotificationsRead, { loading, error }] = useMutation6(
2836
- MARK_ALL_NOTIFICATIONS_READ,
2837
- {
2838
- refetchQueries: [{ query: GET_USER_NOTIFICATIONS }]
2839
- }
2833
+ MARK_ALL_NOTIFICATIONS_READ
2840
2834
  );
2841
2835
  return { error, loading, markAllNotificationsRead };
2842
2836
  };
2843
2837
  var useDeleteNotification = () => {
2844
- const [deleteNotification, { loading, error }] = useMutation6(
2845
- DELETE_NOTIFICATION,
2846
- {
2847
- refetchQueries: [{ query: GET_USER_NOTIFICATIONS }]
2848
- }
2849
- );
2838
+ const [deleteNotification, { loading, error }] = useMutation6(DELETE_NOTIFICATION);
2850
2839
  return { deleteNotification, error, loading };
2851
2840
  };
2852
2841
 
@@ -2913,7 +2902,9 @@ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = gql13`
2913
2902
 
2914
2903
  // src/graphql/hooks/notifications/hooksSubscription.ts
2915
2904
  var useGetUserNotificationsSubscription = () => {
2916
- const { data, loading, error } = useSubscription2(GET_USER_NOTIFICATIONS_SUBSCRIPTION);
2905
+ const { data, loading, error } = useSubscription2(GET_USER_NOTIFICATIONS_SUBSCRIPTION, {
2906
+ shouldResubscribe: true
2907
+ });
2917
2908
  return {
2918
2909
  error,
2919
2910
  loading,
@@ -2921,7 +2912,9 @@ var useGetUserNotificationsSubscription = () => {
2921
2912
  };
2922
2913
  };
2923
2914
  var useGetNotificationCountSubscription = () => {
2924
- const { data, loading, error } = useSubscription2(GET_NOTIFICATION_COUNT_SUBSCRIPTION);
2915
+ const { data, loading, error } = useSubscription2(GET_NOTIFICATION_COUNT_SUBSCRIPTION, {
2916
+ shouldResubscribe: true
2917
+ });
2925
2918
  return {
2926
2919
  error,
2927
2920
  loading,