HomePhabricator

[Cashtab] Remove async useEffect methods

Description

[Cashtab] Remove async useEffect methods

Summary:
React 18 does not support async useEffect blocks. In prep to upgrade to React 18, refactor these blocks so that we are not awaiting withing useEffect

Note: we can still achieve the same functionality. This is a syntax issue.

Test Plan: Confirm new functions contain exact content of old useEffect blocks. npm test

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Differential Revision: https://reviews.bitcoinabc.org/D15341

Details

Provenance
bytesofmanAuthored on Jan 31 2024, 11:50
bytesofmanPushed on Jan 31 2024, 19:17
Reviewer
Restricted Project
Differential Revision
D15341: [Cashtab] Remove async useEffect methods
Parents
rABCb141caee22d5: [chronik-client] Support tx and block-txs endpoints in ChronikClientNode
Branches
Unknown
Tags
Unknown