@selfcommunity/react-core 0.4.9-alpha.7 → 0.4.9-alpha.8

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.
@@ -60,14 +60,14 @@ function useSCFetchGroup({ id = null, group = null, cacheStrategy = utils_1.Cach
60
60
  utils_1.Logger.error(Errors_1.SCOPE_SC_CORE, err.message);
61
61
  });
62
62
  }
63
- }, [__groupId]);
63
+ }, [__groupId, authUserId]);
64
64
  (0, use_deep_compare_effect_1.useDeepCompareEffectNoCheck)(() => {
65
65
  if (group) {
66
66
  const _c = authUserId ? group : (0, utils_1.objectWithoutProperties)(group, ['subscription_status']);
67
67
  setSCGroup(_c);
68
68
  utils_1.LRUCache.set(__groupCacheKey, _c);
69
69
  }
70
- }, [group]);
70
+ }, [group, authUserId]);
71
71
  return { scGroup, setSCGroup, error };
72
72
  }
73
73
  exports.default = useSCFetchGroup;
@@ -58,13 +58,13 @@ export default function useSCFetchGroup({ id = null, group = null, cacheStrategy
58
58
  Logger.error(SCOPE_SC_CORE, err.message);
59
59
  });
60
60
  }
61
- }, [__groupId]);
61
+ }, [__groupId, authUserId]);
62
62
  useDeepCompareEffectNoCheck(() => {
63
63
  if (group) {
64
64
  const _c = authUserId ? group : objectWithoutProperties(group, ['subscription_status']);
65
65
  setSCGroup(_c);
66
66
  LRUCache.set(__groupCacheKey, _c);
67
67
  }
68
- }, [group]);
68
+ }, [group, authUserId]);
69
69
  return { scGroup, setSCGroup, error };
70
70
  }