@shipengine/react-api 1.10.3 → 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.
- package/index.js +2 -1
- package/index.mjs +2 -1
- 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
|
};
|