From ca7739cf42dfbd4967c82e79c6ac030b128286e4 Mon Sep 17 00:00:00 2001 From: atticusofsparta Date: Mon, 9 Dec 2024 09:33:07 -0600 Subject: [PATCH] fix(loading): customize arns update --- src/components/data-display/tables/DomainsTable.tsx | 10 +++++----- src/state/actions/dispatchArNSUpdate.ts | 12 +++++++++++- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/src/components/data-display/tables/DomainsTable.tsx b/src/components/data-display/tables/DomainsTable.tsx index 7a55c68aa..feb323be9 100644 --- a/src/components/data-display/tables/DomainsTable.tsx +++ b/src/components/data-display/tables/DomainsTable.tsx @@ -129,11 +129,11 @@ const DomainsTable = ({ }, [searchParams]); useEffect(() => { - if (loading) { - setTableData([]); - setFilteredTableData([]); - return; - } + // if (loading) { + // setTableData([]); + // setFilteredTableData([]); + // return; + // } if (domainData) { const newTableData: TableData[] = []; diff --git a/src/state/actions/dispatchArNSUpdate.ts b/src/state/actions/dispatchArNSUpdate.ts index 2b0658d5c..db82fc40d 100644 --- a/src/state/actions/dispatchArNSUpdate.ts +++ b/src/state/actions/dispatchArNSUpdate.ts @@ -1,4 +1,10 @@ -import { ANT, AoANTState, ArNSEventEmitter } from '@ar.io/sdk/web'; +import { + ANT, + ANTRegistry, + AoANTState, + ArNSEventEmitter, + IO, +} from '@ar.io/sdk/web'; import { captureException } from '@sentry/react'; import { AoAddress } from '@src/types'; import eventEmitter from '@src/utils/events'; @@ -26,6 +32,10 @@ export function dispatchArNSUpdate({ type: 'setLoading', payload: true, }); + const arioContract = IO.init({ + processId: ioProcessId, + }); + const antRegistry = new ANTRegistry(); emitter.on('process', async (id, process) => { const handlers = await queryClient.fetchQuery({ queryKey: ['handlers', id],