chore(trading): update generic data provider (#5431)

This commit is contained in:
m.ray 2023-12-06 14:32:51 +02:00 committed by GitHub
parent 40f02ecf89
commit fef13874db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -153,7 +153,8 @@ interface DataProviderParams<
pagination?: {
getPageInfo: GetPageInfo<QueryData>;
append: Append<Data>;
first: number;
first?: number;
last?: number;
};
fetchPolicy?: FetchPolicy;
resetDelay?: number;

View File

@ -98,7 +98,7 @@ export const tradesProvider = makeDataProvider<
pagination: {
getPageInfo,
append,
first: MAX_TRADES,
last: MAX_TRADES,
},
fetchPolicy: 'no-cache',
getSubscriptionVariables: ({ marketId }) => ({ marketId }),