@matchain/matchid-sdk-react 0.1.53-alpha.12 → 0.1.53-alpha.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- export { B as BTCModal, l as ContactCard, C as ContactList, d as EVMModal, E as EmailModal, L as LoginBox, a as LoginButton, c as LoginModal, b as LoginPanel, e as TONModal, T as TRONModal, g as TokenDetail, h as TokenSend, j as TokenSendList, k as TransactionList, U as UsernameModal, f as WalletAsset, W as WalletModal } from '../index-D7S5DMUy.mjs';
1
+ export { B as BTCModal, l as ContactCard, C as ContactList, d as EVMModal, E as EmailModal, L as LoginBox, a as LoginButton, c as LoginModal, b as LoginPanel, e as TONModal, T as TRONModal, g as TokenDetail, h as TokenSend, j as TokenSendList, k as TransactionList, U as UsernameModal, f as WalletAsset, W as WalletModal } from '../index-CLYi12dP.mjs';
2
2
  export { B as Button, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from '../index-BaFmUVw-.mjs';
3
3
  import 'react/jsx-runtime';
4
4
  import '../types-VrV1kYga.mjs';
@@ -1,4 +1,4 @@
1
- export { B as BTCModal, l as ContactCard, C as ContactList, d as EVMModal, E as EmailModal, L as LoginBox, a as LoginButton, c as LoginModal, b as LoginPanel, e as TONModal, T as TRONModal, g as TokenDetail, h as TokenSend, j as TokenSendList, k as TransactionList, U as UsernameModal, f as WalletAsset, W as WalletModal } from '../index-DQFQ39D9.js';
1
+ export { B as BTCModal, l as ContactCard, C as ContactList, d as EVMModal, E as EmailModal, L as LoginBox, a as LoginButton, c as LoginModal, b as LoginPanel, e as TONModal, T as TRONModal, g as TokenDetail, h as TokenSend, j as TokenSendList, k as TransactionList, U as UsernameModal, f as WalletAsset, W as WalletModal } from '../index-BikcLg_6.js';
2
2
  export { B as Button, F as Field, I as Input, M as Modal, a as ModalWithHeader, O as Overlay, P as Popover } from '../index-CQmN0dN4.js';
3
3
  import 'react/jsx-runtime';
4
4
  import '../types-VrV1kYga.js';
@@ -6516,13 +6516,19 @@ function useContactList(page_size = 10, type = "Friend") {
6516
6516
  limitIdRef.current = lastItem?.limit_id || 0;
6517
6517
  }
6518
6518
  }, [contactQuery.data?.pages]);
6519
- return {
6520
- data: (contactQuery.data?.pages ?? []).reduce(
6519
+ (0, import_react42.useEffect)(() => {
6520
+ console.log("contactQuery.data", contactQuery.data);
6521
+ }, [contactQuery.data]);
6522
+ const data = (0, import_react42.useMemo)(() => {
6523
+ return (contactQuery.data?.pages ?? []).reduce(
6521
6524
  (a, b) => {
6522
6525
  return a.concat(b?.items ?? []);
6523
6526
  },
6524
6527
  []
6525
- ),
6528
+ );
6529
+ }, [contactQuery.data]);
6530
+ return {
6531
+ data,
6526
6532
  totalCount: contactQuery.hasNextPage ? ((0, import_last.default)(contactQuery.data?.pages ?? [])?.meta.total ?? 0) + 1 : (0, import_last.default)(contactQuery.data?.pages ?? [])?.meta.total ?? 0,
6527
6533
  loading: contactQuery.isLoading,
6528
6534
  loadingNextPage: contactQuery.isFetchingNextPage,