@bigbinary/neetoui 6.5.4 → 6.5.5
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.
- package/index.cjs.js +3 -0
- package/index.cjs.js.map +1 -1
- package/index.js +3 -0
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -37082,6 +37082,9 @@ var useTableSort = function useTableSort() {
|
|
|
37082
37082
|
_useState2 = _slicedToArray$3(_useState, 2),
|
|
37083
37083
|
sortedInfo = _useState2[0],
|
|
37084
37084
|
setSortedInfo = _useState2[1];
|
|
37085
|
+
React$3.useEffect(function () {
|
|
37086
|
+
setSortedInfo(getSortInfoFromQueryParams(queryParams));
|
|
37087
|
+
}, [queryParams === null || queryParams === void 0 ? void 0 : queryParams.sort_by, queryParams === null || queryParams === void 0 ? void 0 : queryParams.order_by]);
|
|
37085
37088
|
var history = reactRouterDom.useHistory();
|
|
37086
37089
|
var handleTableChange = function handleTableChange(pagination, sorter) {
|
|
37087
37090
|
var params = {
|