mirror of
https://github.com/status-im/safe-react.git
synced 2025-01-29 10:56:24 +00:00
refactor: fetch safe and tokens simultaneously
This commit is contained in:
parent
823fc40f7d
commit
e08083743d
@ -15,8 +15,10 @@ export const useLoadSafe = (safeAddress) => {
|
||||
const fetchData = () => {
|
||||
if (safeAddress) {
|
||||
dispatch(fetchLatestMasterContractVersion())
|
||||
.then(() => dispatch(fetchSafe(safeAddress)))
|
||||
.then(() => dispatch(fetchSafeTokens(safeAddress)))
|
||||
.then(() => {
|
||||
dispatch(fetchSafe(safeAddress))
|
||||
return dispatch(fetchSafeTokens(safeAddress))
|
||||
})
|
||||
.then(() => {
|
||||
dispatch(loadAddressBookFromStorage())
|
||||
dispatch(fetchTransactions(safeAddress))
|
||||
|
Loading…
x
Reference in New Issue
Block a user