@rango-dev/widget-embedded 0.12.1-next.31 → 0.12.1-next.32

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rango-dev/widget-embedded",
3
- "version": "0.12.1-next.31",
3
+ "version": "0.12.1-next.32",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -26,6 +26,10 @@ export function usePrepareBlockchainList(
26
26
 
27
27
  blockchains.sort(sortByMostUsedBlockchains);
28
28
 
29
+ const blockchainsHash = blockchains
30
+ .map((blockchain) => blockchain.name)
31
+ .join('-');
32
+
29
33
  return useMemo(() => {
30
34
  const list: BlockchainMeta[] = blockchains;
31
35
  let more: BlockchainMeta[] = [];
@@ -80,8 +84,7 @@ export function usePrepareBlockchainList(
80
84
  list,
81
85
  more,
82
86
  };
83
- //TODO: replace with better solution
84
- }, [JSON.stringify(blockchains)]);
87
+ }, [blockchainsHash]);
85
88
  }
86
89
 
87
90
  function generateSortBySelectedFor(selected: string) {