diff --git a/package.json b/package.json index c42770f0..c5fd6f64 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ka-table", - "version": "7.8.2", + "version": "7.8.3", "license": "MIT", "repository": "github:komarovalexander/ka-table", "homepage": "https://komarovalexander.github.io/ka-table/#/overview", diff --git a/src/lib/Components/TableUncontrolled/TableUncontrolled.tsx b/src/lib/Components/TableUncontrolled/TableUncontrolled.tsx index fb28ccc2..39598261 100644 --- a/src/lib/Components/TableUncontrolled/TableUncontrolled.tsx +++ b/src/lib/Components/TableUncontrolled/TableUncontrolled.tsx @@ -37,8 +37,11 @@ export const TableUncontrolled: React.FunctionComponent if (props?.loading?.enabled !== tablePropsUncontrolled?.loading?.enabled) { props?.loading?.enabled ? contextTable.showLoading() : contextTable.hideLoading(); } + if (props?.data !== tableProps?.data) { + contextTable?.updateData(props?.data || []); + } // eslint-disable-next-line react-hooks/exhaustive-deps - }, [props?.loading?.enabled]); + }, [props?.loading?.enabled, props?.data]); return (