@turtleclub/hooks 0.5.0-beta.93 → 0.5.0-beta.94

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.js CHANGED
@@ -4152,10 +4152,12 @@ function useWidgetOpportunities(distributorId) {
4152
4152
  import { useQuery as useQuery12 } from "@tanstack/react-query";
4153
4153
  function useGeocheck(options = {}) {
4154
4154
  const { enabled = true, staleTime, gcTime } = options;
4155
+ const { disableGeocheck } = apiClient.getConfig();
4155
4156
  return useQuery12({
4156
4157
  ...geocheckQueries.check,
4157
4158
  ...queryDefaults,
4158
- enabled,
4159
+ enabled: enabled && !disableGeocheck,
4160
+ ...disableGeocheck && { initialData: { canInteract: true } },
4159
4161
  staleTime: staleTime ?? 5 * 60 * 1e3,
4160
4162
  // 5 minutes
4161
4163
  gcTime: gcTime ?? 10 * 60 * 1e3
@@ -4577,9 +4579,10 @@ function TurtleHooksProvider({
4577
4579
  earnUrl,
4578
4580
  getToken,
4579
4581
  earnApiKey,
4580
- debug
4582
+ debug,
4583
+ disableGeocheck
4581
4584
  }) {
4582
- apiClient.configure({ apiUrl, earnUrl, getToken, earnApiKey, debug });
4585
+ apiClient.configure({ apiUrl, earnUrl, getToken, earnApiKey, debug, disableGeocheck });
4583
4586
  return /* @__PURE__ */ jsx(Fragment, { children });
4584
4587
  }
4585
4588