FIX: Lazy load pools
Current
- Go to page: 1 second
- Spinny icon: 4 seconds
- "NO DATA": 20 seconds
- Pools displayed: 25 seconds
Desired - lazy load
1 Load the pools array /v1/pools
and display a table of:
| icon | name | - | - | - | [join] [swap] |
Use placeholder/skeleton for metrics that aren't loaded
https://ant.design/components/skeleton/#header
2 Load the BNB pool first (we will ALWAYS have a BNB pool) /v1/pools/detail?asset=BNB.BNB
3 Lazy load each pool's metric from the array returned by (1)
Edited by THORChain