datastake-daf 0.6.740 → 0.6.741

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.
@@ -5797,7 +5797,7 @@ function DAFTable(_ref) {
5797
5797
  if (data) {
5798
5798
  setSource(data);
5799
5799
  }
5800
- }, [data.length]);
5800
+ }, [data]);
5801
5801
  const paginationPageSize = pagination === null || pagination === void 0 ? void 0 : pagination.pageSize;
5802
5802
  const dataSource = React.useMemo(() => {
5803
5803
  const pageSize = paginationPageSize ? paginationPageSize : source.length > 10 ? source.length : 10;
@@ -15163,7 +15163,7 @@ function DAFTable({
15163
15163
  if (data) {
15164
15164
  setSource(data);
15165
15165
  }
15166
- }, [data.length]);
15166
+ }, [data]);
15167
15167
  const paginationPageSize = pagination?.pageSize;
15168
15168
  const dataSource = React.useMemo(() => {
15169
15169
  const pageSize = paginationPageSize ? paginationPageSize : source.length > 10 ? source.length : 10;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datastake-daf",
3
- "version": "0.6.740",
3
+ "version": "0.6.741",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.2.5",
6
6
  "@antv/g2": "^5.1.1",
@@ -89,7 +89,7 @@ export default function DAFTable({
89
89
  if (data) {
90
90
  setSource(data);
91
91
  }
92
- }, [data.length]);
92
+ }, [data]);
93
93
 
94
94
  const paginationPageSize = pagination?.pageSize;
95
95
  const dataSource = useMemo(() => {