archethic-node
archethic-node copied to clipboard
Explorer: some pages are doing twice the work
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
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.