react-notify-sdk 1.0.66 → 1.0.69

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.
@@ -161,13 +161,13 @@ export const FeatureMessageProvider = ({ projectKey, }) => {
161
161
  clearInterval(intervalRef.current);
162
162
  }
163
163
  };
164
- }, [projectKey, pathname]);
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.length)
170
+ if (!pathname || !messages?.length)
171
171
  return;
172
172
  let fadeOutTimer = null;
173
173
  const origin = typeof window !== "undefined" ? window.location.origin : "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-notify-sdk",
3
- "version": "1.0.66",
3
+ "version": "1.0.69",
4
4
  "description": "SDK for displaying real-time route-specific messages in React apps",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",