diff --git a/CHANGELOG.md b/CHANGELOG.md index b7e50bf..4d9bc06 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ **[Get it on npm](https://www.npmjs.com/package/certego-ui)** +## [v0.1.13](https://github.com/certego/certego-ui/releases/tag/v0.1.13) +useDataTable return loading property to better handler loading phases and avoid multiple requests + ## [v0.1.12](https://github.com/certego/certego-ui/releases/tag/v0.1.12) Fixed auto-update DataTable when removed a filter with the cross icon diff --git a/example/package-lock.json b/example/package-lock.json index 3d28dbf..38a7cd5 100644 --- a/example/package-lock.json +++ b/example/package-lock.json @@ -19,7 +19,7 @@ }, "..": { "name": "@certego/certego-ui", - "version": "0.1.12", + "version": "0.1.13", "license": "MIT", "dependencies": { "classnames": "^2.3.1", diff --git a/example/src/layouts/AppFooter.jsx b/example/src/layouts/AppFooter.jsx index 6ee6193..1d065ee 100644 --- a/example/src/layouts/AppFooter.jsx +++ b/example/src/layouts/AppFooter.jsx @@ -5,7 +5,7 @@ import { FaTwitter } from "react-icons/fa"; import { Toaster, ScrollToTopButton, useToastr } from "@certego/certego-ui"; // constants -const CERTEGO_UI_VERSION = "v0.1.12"; +const CERTEGO_UI_VERSION = "v0.1.13"; const selector = (state) => state.toasts; function AppFooter() { diff --git a/package-lock.json b/package-lock.json index 05a1ff5..ace74aa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@certego/certego-ui", - "version": "0.1.12", + "version": "0.1.13", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@certego/certego-ui", - "version": "0.1.12", + "version": "0.1.13", "license": "MIT", "dependencies": { "classnames": "^2.3.1", diff --git a/package.json b/package.json index 03ad85f..8c61208 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@certego/certego-ui", - "version": "0.1.12", + "version": "0.1.13", "description": "certego components library (react.js, reactstrap, etc)", "author": "certego", "license": "MIT", diff --git a/src/components/table/useDataTable.jsx b/src/components/table/useDataTable.jsx index 5afedec..f9e7c7b 100644 --- a/src/components/table/useDataTable.jsx +++ b/src/components/table/useDataTable.jsx @@ -71,7 +71,7 @@ function useDataTable( ] ); - return [data, tableNode, refetch, tableStateReducer]; + return [data, tableNode, refetch, tableStateReducer, loading]; } export default useDataTable;