We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 03c4441 + 79bef0a commit 80ec342Copy full SHA for 80ec342
.changeset/mighty-peaches-cheer.md
@@ -0,0 +1,5 @@
1
+---
2
+"@aave/client": patch
3
4
+
5
+**fix:** remove client-side sorting for activities to preserve backend ordering.
packages/client/src/cache.ts
@@ -7,7 +7,6 @@ import {
7
type Hub,
8
type HubAsset,
9
type HubQuery,
10
- type ID,
11
isHubInputVariant,
12
isTxHashInputVariant,
13
type LiquidatedActivity,
@@ -234,11 +233,6 @@ export const exchange = cacheExchange({
234
233
}
235
236
return true;
237
- })
238
- .sort((a, b) => {
239
- const ida = cache.resolve(a, 'id') as ID;
240
- const idb = cache.resolve(b, 'id') as ID;
241
- return idb <= ida ? 1 : -1;
242
});
243
244
if (matches.length === 0) return undefined;
0 commit comments