@orderly.network/hooks 2.4.0 → 2.4.1

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.
package/dist/index.mjs CHANGED
@@ -36,9 +36,9 @@ var __export = (target, all) => {
36
36
  // src/version.ts
37
37
  if (typeof window !== "undefined") {
38
38
  window.__ORDERLY_VERSION__ = window.__ORDERLY_VERSION__ || {};
39
- window.__ORDERLY_VERSION__["@orderly.network/hooks"] = "2.4.0";
39
+ window.__ORDERLY_VERSION__["@orderly.network/hooks"] = "2.4.1";
40
40
  }
41
- var version_default = "2.4.0";
41
+ var version_default = "2.4.1";
42
42
  var fetcher = (url, init2 = {}, queryOptions) => get(url, init2, queryOptions?.formatter);
43
43
  var OrderlyContext = createContext({
44
44
  // configStore: new MemoryConfigStore(),
@@ -15911,10 +15911,11 @@ var useRestrictedInfo = (options) => {
15911
15911
  }, [
15912
15912
  ipInfo,
15913
15913
  restrictedAreas,
15914
- enableDefault,
15915
- customRestrictedIps,
15916
- customRestrictedRegions,
15917
- accessRestricted
15914
+ accessRestricted,
15915
+ enableDefault
15916
+ // it will lead to infinite re-render when these values change, so we don't need to watch these
15917
+ // customRestrictedIps,
15918
+ // customRestrictedRegions,
15918
15919
  ]);
15919
15920
  return {
15920
15921
  ip,