archethic-node icon indicating copy to clipboard operation
archethic-node copied to clipboard

Explorer: some pages are doing twice the work

Open bchamagne opened this issue 1 year ago • 1 comments

Describe the problem you discovered

Example page: https://testnet.archethic.net/explorer/transaction/000004ED230762C7E08D4438221AC1850409F061BC552DBD8B25A678FEEA7FD235C4

when reloading this page, the handle_params is called twice, resulting in 2 search_transaction.

There is probably the same behaviour on multiple pages.

Describe the solution you'd like

Reloading the page should trigger search_transaction only once.

Epic

#146

bchamagne avatar Jun 12 '23 15:06 bchamagne

We could probably try to load the data on mount and check whether the websocket is connected or not, with socket.connected? indicating in which state the page loading is.

samuelmanzanera avatar Jun 13 '23 06:06 samuelmanzanera