@shipengine/react-api 1.10.2 → 1.10.4

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 +2 -1
  2. package/index.mjs +2 -1
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -750,9 +750,10 @@ const useGetFundingSourceMetadata = () => {
750
750
  const useGetFundingSourceTransactions = (fundingSourceId, params) => {
751
751
  const { client } = useShipEngine();
752
752
  return reactQuery.useQuery({
753
+ keepPreviousData: true,
753
754
  onError,
754
755
  queryFn: () => client.fundingSources.transactions(fundingSourceId, params),
755
- queryKey: ["useGetFundingSourceTransactions", fundingSourceId],
756
+ queryKey: ["useGetFundingSourceTransactions", fundingSourceId, params],
756
757
  select: (result) => result.data
757
758
  });
758
759
  };
package/index.mjs CHANGED
@@ -747,9 +747,10 @@ const useGetFundingSourceMetadata = () => {
747
747
  const useGetFundingSourceTransactions = (fundingSourceId, params) => {
748
748
  const { client } = useShipEngine();
749
749
  return useQuery({
750
+ keepPreviousData: true,
750
751
  onError,
751
752
  queryFn: () => client.fundingSources.transactions(fundingSourceId, params),
752
- queryKey: ["useGetFundingSourceTransactions", fundingSourceId],
753
+ queryKey: ["useGetFundingSourceTransactions", fundingSourceId, params],
753
754
  select: (result) => result.data
754
755
  });
755
756
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/react-api",
3
- "version": "1.10.2",
3
+ "version": "1.10.4",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {