akeyless-client-commons 1.1.17-test.5 → 1.1.17-test.7

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.
@@ -968,6 +968,9 @@ var useSocketSubscription = function(configs, label, settings) {
968
968
  var _ref = _sliced_to_array((0, import_react3.useState)(socketServiceInstance.isConnected()), 2), socketConnected = _ref[0], setSocketConnected = _ref[1];
969
969
  var _ref1 = _sliced_to_array((0, import_react3.useState)([]), 2), cleanupSubscriptions = _ref1[0], setCleanupSubscriptions = _ref1[1];
970
970
  useDeepCompareEffect(function() {
971
+ if (!auth.currentUser) {
972
+ return;
973
+ }
971
974
  if (socketConnected) {
972
975
  setCleanupSubscriptions(function(prev) {
973
976
  return _to_consumable_array(prev).concat([
@@ -1014,7 +1017,8 @@ var useSocketSubscription = function(configs, label, settings) {
1014
1017
  };
1015
1018
  }, [
1016
1019
  socketConnected,
1017
- configs
1020
+ configs,
1021
+ auth
1018
1022
  ]);
1019
1023
  (0, import_react3.useEffect)(function() {
1020
1024
  return function() {
@@ -874,6 +874,9 @@ var useSocketSubscription = function(configs, label, settings) {
874
874
  var _useState = _sliced_to_array(useState(socketServiceInstance.isConnected()), 2), socketConnected = _useState[0], setSocketConnected = _useState[1];
875
875
  var _useState1 = _sliced_to_array(useState([]), 2), cleanupSubscriptions = _useState1[0], setCleanupSubscriptions = _useState1[1];
876
876
  useDeepCompareEffect(function() {
877
+ if (!auth.currentUser) {
878
+ return;
879
+ }
877
880
  if (socketConnected) {
878
881
  setCleanupSubscriptions(function(prev) {
879
882
  return _to_consumable_array(prev).concat([
@@ -920,7 +923,8 @@ var useSocketSubscription = function(configs, label, settings) {
920
923
  };
921
924
  }, [
922
925
  socketConnected,
923
- configs
926
+ configs,
927
+ auth
924
928
  ]);
925
929
  useEffect2(function() {
926
930
  return function() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "akeyless-client-commons",
3
- "version": "1.1.17-test.5",
3
+ "version": "1.1.17-test.7",
4
4
  "scripts": {
5
5
  "build": "tsup",
6
6
  "deploy": "npm run build && npm version patch --no-git-tag-version && npm publish",