chore(trading): update generic data provider (#5431)
This commit is contained in:
parent
40f02ecf89
commit
fef13874db
@ -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;
|
||||||
|
@ -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 }),
|
||||||
|
Loading…
Reference in New Issue
Block a user