@etsoo/react 1.4.90 → 1.4.91

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.
@@ -10,7 +10,7 @@ import { LoadingButton } from './LoadingButton';
10
10
  */
11
11
  export function ListMoreDisplay(props) {
12
12
  // Destruct
13
- const { autoLoad = true, children, defaultOrderBy, headerRenderer, headerTitle, loadBatchSize, loadData, moreLabel = typeof globalApp === 'undefined'
13
+ const { children, defaultOrderBy, headerRenderer, autoLoad = headerRenderer == null, headerTitle, loadBatchSize, loadData, moreLabel = typeof globalApp === 'undefined'
14
14
  ? undefined
15
15
  : globalApp.get('more') + '...', fieldTemplate, threshold, ...rest } = props;
16
16
  // Refs
@@ -73,7 +73,7 @@ export function ListMoreDisplay(props) {
73
73
  ref.currentPage = 0;
74
74
  ref.hasNextPage = true;
75
75
  // Load data
76
- loadDataLocal();
76
+ loadDataLocal(true);
77
77
  };
78
78
  React.useEffect(() => {
79
79
  if (autoLoad)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/react",
3
- "version": "1.4.90",
3
+ "version": "1.4.91",
4
4
  "description": "TypeScript ReactJs framework",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -68,10 +68,10 @@ export function ListMoreDisplay<
68
68
  >(props: ListMoreDisplayProps<T, F>) {
69
69
  // Destruct
70
70
  const {
71
- autoLoad = true,
72
71
  children,
73
72
  defaultOrderBy,
74
73
  headerRenderer,
74
+ autoLoad = headerRenderer == null,
75
75
  headerTitle,
76
76
  loadBatchSize,
77
77
  loadData,
@@ -157,7 +157,7 @@ export function ListMoreDisplay<
157
157
  ref.hasNextPage = true;
158
158
 
159
159
  // Load data
160
- loadDataLocal();
160
+ loadDataLocal(true);
161
161
  };
162
162
 
163
163
  React.useEffect(() => {