Skip to content

Commit

Permalink
fix(loading): customize arns update
Browse files Browse the repository at this point in the history
  • Loading branch information
atticusofsparta committed Dec 9, 2024
1 parent 1901205 commit ca7739c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/components/data-display/tables/DomainsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,11 @@ const DomainsTable = ({
}, [searchParams]);

useEffect(() => {
if (loading) {
setTableData([]);
setFilteredTableData([]);
return;
}
// if (loading) {
// setTableData([]);
// setFilteredTableData([]);
// return;
// }
if (domainData) {
const newTableData: TableData[] = [];

Expand Down
12 changes: 11 additions & 1 deletion src/state/actions/dispatchArNSUpdate.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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],
Expand Down

0 comments on commit ca7739c

Please sign in to comment.