rtk-query
Justin 2022-07-18 10:26:51 -04:00
rodzic 6b2027cba5
commit a6122d0527
1 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -47,7 +47,11 @@ export function importFetchedAccounts(accounts: APIEntity[], args = { should_ref
const processAccount = (account: APIEntity) => {
if (!account.id) return;
normalAccounts.push({ should_refetch, ...account });
if (should_refetch) {
account.should_refetch = true;
}
normalAccounts.push(account);
if (account.moved) {
processAccount(account.moved);