react-notify-sdk 1.0.61 → 1.0.62
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.
|
@@ -102,11 +102,13 @@ export const FeatureMessageProvider = ({ projectKey, }) => {
|
|
|
102
102
|
clearTimeout(fadeOutTimer); // Clear any pending timeout
|
|
103
103
|
setMessage(match);
|
|
104
104
|
setVisible(true); // Fade in
|
|
105
|
+
console.log("match set");
|
|
105
106
|
}
|
|
106
107
|
else {
|
|
107
108
|
// Trigger fade out before removing message
|
|
108
109
|
fadeOutTimer = setTimeout(() => setMessage(null), 300);
|
|
109
110
|
setVisible(false);
|
|
111
|
+
console.log("match not set");
|
|
110
112
|
}
|
|
111
113
|
};
|
|
112
114
|
fetchMessage();
|
|
@@ -123,9 +125,11 @@ export const FeatureMessageProvider = ({ projectKey, }) => {
|
|
|
123
125
|
clearTimeout(fadeOutTimer); // Clear any pending timeout
|
|
124
126
|
setMessage(msg);
|
|
125
127
|
setVisible(true);
|
|
128
|
+
console.log("renders message");
|
|
126
129
|
}
|
|
127
130
|
else {
|
|
128
131
|
setVisible(false);
|
|
132
|
+
console.log("does not render message");
|
|
129
133
|
fadeOutTimer = setTimeout(() => setMessage(null), 300);
|
|
130
134
|
}
|
|
131
135
|
})
|