@shipengine/react-api 2.3.0 → 2.3.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.
Files changed (3) hide show
  1. package/index.js +3 -1
  2. package/index.mjs +3 -1
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -2003,9 +2003,11 @@ const useUpdateAccountBillingPlan = () => {
2003
2003
  const useListServicePoints = (options) => {
2004
2004
  const { client } = useShipEngine();
2005
2005
  return reactQuery.useQuery({
2006
+ enabled: options.providers.length > 0,
2006
2007
  onError,
2007
2008
  queryFn: () => client.servicePoints.list(options),
2008
- queryKey: ["useListServicePoints"],
2009
+ queryKey: ["useListServicePoints", options],
2010
+ retry: false,
2009
2011
  select: (result) => result.data
2010
2012
  });
2011
2013
  };
package/index.mjs CHANGED
@@ -2000,9 +2000,11 @@ const useUpdateAccountBillingPlan = () => {
2000
2000
  const useListServicePoints = (options) => {
2001
2001
  const { client } = useShipEngine();
2002
2002
  return useQuery({
2003
+ enabled: options.providers.length > 0,
2003
2004
  onError,
2004
2005
  queryFn: () => client.servicePoints.list(options),
2005
- queryKey: ["useListServicePoints"],
2006
+ queryKey: ["useListServicePoints", options],
2007
+ retry: false,
2006
2008
  select: (result) => result.data
2007
2009
  });
2008
2010
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/react-api",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {