@usereactify/search 3.4.2 → 3.4.3

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.
@@ -21,6 +21,9 @@ const useLiveConfig = (shopifyPermanentDomain) => {
21
21
  // synchronously returns cached and non-expired config from session storage
22
22
  const cachedConfig = react_1.default.useMemo(() => {
23
23
  var _a;
24
+ if (typeof window === "undefined") {
25
+ return;
26
+ }
24
27
  // skip checking cache if url search param "nocache" is set
25
28
  const skipCache = new URLSearchParams(window.location.href.split("?")[1]).get("nocache") !==
26
29
  null;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@usereactify/search",
3
3
  "description": "React UI library for Reactify Search",
4
- "version": "3.4.2",
4
+ "version": "3.4.3",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",