@0xmonaco/react 0.8.5 → 0.8.7
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.
|
@@ -75,7 +75,7 @@ export function useUserMovements(options = {}) {
|
|
|
75
75
|
sdk.profile
|
|
76
76
|
.getPaginatedUserMovements({ page_size: requestLimit, entry_type, transaction_type, asset_id })
|
|
77
77
|
.then(async (response) => {
|
|
78
|
-
// Combine latest_movements (from
|
|
78
|
+
// Combine latest_movements (from the live engine cache) with movements (from PostgreSQL)
|
|
79
79
|
// latest_movements contains real-time data that may not yet be in PostgreSQL
|
|
80
80
|
// Deduplicate by id, preferring latest_movements (newer data)
|
|
81
81
|
const latestMovements = (response.latest_movements || []).map((m) => ledgerMovementToEvent(m, userId));
|
|
@@ -25,7 +25,7 @@ export function useUserOrders(maxOrders = 50) {
|
|
|
25
25
|
page: 1,
|
|
26
26
|
page_size: maxOrders,
|
|
27
27
|
});
|
|
28
|
-
// Combine latest_orders (from
|
|
28
|
+
// Combine latest_orders (from the live engine cache) with orders (from PostgreSQL)
|
|
29
29
|
// latest_orders contains real-time data that may not yet be in PostgreSQL
|
|
30
30
|
// Deduplicate by id, preferring latest_orders (newer data)
|
|
31
31
|
const latestOrders = response.latest_orders || [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0xmonaco/react",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"lint": "biome lint ."
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@0xmonaco/core": "0.8.
|
|
24
|
-
"@0xmonaco/types": "0.8.
|
|
23
|
+
"@0xmonaco/core": "0.8.7",
|
|
24
|
+
"@0xmonaco/types": "0.8.7"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/react": "^19.1.12",
|