@rh-support/react-context 1.0.19 → 1.0.20-beta.0

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.
@@ -51,7 +51,7 @@ export function useFeatureAnnouncement(featureName) {
51
51
  * If a feature is removed from the PCM config, then we can erase that data from the user preferences too
52
52
  */
53
53
  const cleanUpFeatureDataInUserPreference = () => {
54
- if (!featureName || isCleanupScheduled.current)
54
+ if (!featureName || hydraUserPreferences.isFetching || isCleanupScheduled.current)
55
55
  return;
56
56
  const allFeatures = userFeatureAnnouncementPreferences || {};
57
57
  const featureConfig = allFeatures[featureName];
@@ -67,7 +67,7 @@ export function useFeatureAnnouncement(featureName) {
67
67
  }
68
68
  };
69
69
  const onFeatureDismiss = () => {
70
- if (!featureName)
70
+ if (!featureName || hydraUserPreferences.isFetching)
71
71
  return;
72
72
  const allFeatures = userFeatureAnnouncementPreferences || {};
73
73
  const featureConfig = allFeatures[featureName] || {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/react-context",
3
- "version": "1.0.19",
3
+ "version": "1.0.20-beta.0",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -44,10 +44,10 @@
44
44
  "@cee-eng/hydrajs": "4.14.53",
45
45
  "@patternfly/react-core": "4.264.0",
46
46
  "@patternfly/react-icons": "4.92.10",
47
- "@rh-support/components": "1.2.14",
47
+ "@rh-support/components": "1.2.14-beta.0",
48
48
  "@rh-support/types": "0.2.0",
49
- "@rh-support/user-permissions": "1.0.11",
50
- "@rh-support/utils": "1.0.9",
49
+ "@rh-support/user-permissions": "1.0.11-beta.0",
50
+ "@rh-support/utils": "1.0.9-beta.0",
51
51
  "i18next": "^19.0.1",
52
52
  "localforage": "^1.7.3",
53
53
  "lodash": "^4.17.21",
@@ -90,5 +90,5 @@
90
90
  "not ie <= 11",
91
91
  "not op_mini all"
92
92
  ],
93
- "gitHead": "df23c68f566e8b933a0dcfb1535286bd319cdd80"
93
+ "gitHead": "2be4bc53c57d1c9977bd9da0e7bdc16acdd86d15"
94
94
  }