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?: { pagination?: {
getPageInfo: GetPageInfo<QueryData>; getPageInfo: GetPageInfo<QueryData>;
append: Append<Data>; append: Append<Data>;
first: number; first?: number;
last?: number;
}; };
fetchPolicy?: FetchPolicy; fetchPolicy?: FetchPolicy;
resetDelay?: number; resetDelay?: number;

View File

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