@matchain/matchid-sdk-react 0.1.53-alpha.13 → 0.1.53-alpha.15
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.
- package/dist/{chunk-I2V4VRQH.mjs → chunk-BC4HS373.mjs} +17 -9
- package/dist/chunk-BC4HS373.mjs.map +1 -0
- package/dist/components/index.js +10 -4
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +1 -1
- package/dist/hooks/api/index.js +10 -4
- package/dist/hooks/api/index.js.map +1 -1
- package/dist/hooks/api/index.mjs +1 -1
- package/dist/hooks/index.d.mts +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/{index-zc2GEzJ9.d.ts → index-D5yzH62h.d.ts} +5 -4
- package/dist/{index-DjbH13zc.d.mts → index-Dus4QPjO.d.mts} +5 -4
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +15 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-I2V4VRQH.mjs.map +0 -1
package/dist/hooks/api/index.js
CHANGED
|
@@ -580,7 +580,7 @@ var import_react9 = require("react");
|
|
|
580
580
|
var import_viem4 = require("viem");
|
|
581
581
|
|
|
582
582
|
// src/context/ModalContext.tsx
|
|
583
|
-
var import_react8 = require("react");
|
|
583
|
+
var import_react8 = __toESM(require("react"));
|
|
584
584
|
var import_react_dom = require("react-dom");
|
|
585
585
|
|
|
586
586
|
// src/assets/icon/BackIcon.tsx
|
|
@@ -1785,13 +1785,19 @@ function useContactList(page_size = 10, type = "Friend") {
|
|
|
1785
1785
|
limitIdRef.current = lastItem?.limit_id || 0;
|
|
1786
1786
|
}
|
|
1787
1787
|
}, [contactQuery.data?.pages]);
|
|
1788
|
-
|
|
1789
|
-
data
|
|
1788
|
+
(0, import_react43.useEffect)(() => {
|
|
1789
|
+
console.log("contactQuery.data", contactQuery.data);
|
|
1790
|
+
}, [contactQuery.data]);
|
|
1791
|
+
const data = (0, import_react43.useMemo)(() => {
|
|
1792
|
+
return (contactQuery.data?.pages ?? []).reduce(
|
|
1790
1793
|
(a, b) => {
|
|
1791
1794
|
return a.concat(b?.items ?? []);
|
|
1792
1795
|
},
|
|
1793
1796
|
[]
|
|
1794
|
-
)
|
|
1797
|
+
);
|
|
1798
|
+
}, [contactQuery.data]);
|
|
1799
|
+
return {
|
|
1800
|
+
data,
|
|
1795
1801
|
totalCount: contactQuery.hasNextPage ? ((0, import_last.default)(contactQuery.data?.pages ?? [])?.meta.total ?? 0) + 1 : (0, import_last.default)(contactQuery.data?.pages ?? [])?.meta.total ?? 0,
|
|
1796
1802
|
loading: contactQuery.isLoading,
|
|
1797
1803
|
loadingNextPage: contactQuery.isFetchingNextPage,
|