@etsoo/react 1.5.19 → 1.5.20

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.
@@ -56,6 +56,8 @@ export function ListMoreDisplay(props) {
56
56
  ref.lastLoadedItems = newItems;
57
57
  ref.isNextPageLoading = false;
58
58
  ref.hasNextPage = hasNextPage;
59
+ // Next page
60
+ ref.currentPage = currentPage + 1;
59
61
  // Update rows
60
62
  if (states.items == null || reset)
61
63
  setStates({ items, completed: !hasNextPage });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/react",
3
- "version": "1.5.19",
3
+ "version": "1.5.20",
4
4
  "description": "TypeScript ReactJs framework",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -83,9 +83,9 @@
83
83
  "@babel/runtime-corejs3": "^7.17.2",
84
84
  "@types/jest": "^27.4.0",
85
85
  "@types/react-test-renderer": "^17.0.1",
86
- "@typescript-eslint/eslint-plugin": "^5.11.0",
87
- "@typescript-eslint/parser": "^5.11.0",
88
- "eslint": "^8.8.0",
86
+ "@typescript-eslint/eslint-plugin": "^5.12.0",
87
+ "@typescript-eslint/parser": "^5.12.0",
88
+ "eslint": "^8.9.0",
89
89
  "eslint-config-airbnb-base": "^15.0.0",
90
90
  "eslint-plugin-import": "^2.25.4",
91
91
  "eslint-plugin-react": "^7.28.0",
@@ -137,6 +137,9 @@ export function ListMoreDisplay<
137
137
  ref.isNextPageLoading = false;
138
138
  ref.hasNextPage = hasNextPage;
139
139
 
140
+ // Next page
141
+ ref.currentPage = currentPage + 1;
142
+
140
143
  // Update rows
141
144
  if (states.items == null || reset)
142
145
  setStates({ items, completed: !hasNextPage });