react-notify-sdk 1.0.65 → 1.0.68
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.
|
@@ -126,8 +126,8 @@ export const FeatureMessageProvider = ({ projectKey, }) => {
|
|
|
126
126
|
},
|
|
127
127
|
body: JSON.stringify({
|
|
128
128
|
projectKey,
|
|
129
|
-
pathname
|
|
130
|
-
origin
|
|
129
|
+
pathname,
|
|
130
|
+
origin,
|
|
131
131
|
version: versionRef.current, // 🔥 Send current version
|
|
132
132
|
}),
|
|
133
133
|
});
|
|
@@ -161,13 +161,13 @@ export const FeatureMessageProvider = ({ projectKey, }) => {
|
|
|
161
161
|
clearInterval(intervalRef.current);
|
|
162
162
|
}
|
|
163
163
|
};
|
|
164
|
-
}, [projectKey
|
|
164
|
+
}, [projectKey]);
|
|
165
165
|
// --------------------------------------------
|
|
166
166
|
// MATCH ROUTE → SHOW MESSAGE
|
|
167
167
|
// --------------------------------------------
|
|
168
168
|
// Effect to determine which message to show based on current pathname and messages
|
|
169
169
|
useEffect(() => {
|
|
170
|
-
if (!pathname || !messages
|
|
170
|
+
if (!pathname || !messages?.length)
|
|
171
171
|
return;
|
|
172
172
|
let fadeOutTimer = null;
|
|
173
173
|
const origin = typeof window !== "undefined" ? window.location.origin : "";
|