@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.js
CHANGED
|
@@ -37048,6 +37048,9 @@ var useTableSort = function useTableSort() {
|
|
|
37048
37048
|
_useState2 = _slicedToArray$3(_useState, 2),
|
|
37049
37049
|
sortedInfo = _useState2[0],
|
|
37050
37050
|
setSortedInfo = _useState2[1];
|
|
37051
|
+
useEffect(function () {
|
|
37052
|
+
setSortedInfo(getSortInfoFromQueryParams(queryParams));
|
|
37053
|
+
}, [queryParams === null || queryParams === void 0 ? void 0 : queryParams.sort_by, queryParams === null || queryParams === void 0 ? void 0 : queryParams.order_by]);
|
|
37051
37054
|
var history = useHistory();
|
|
37052
37055
|
var handleTableChange = function handleTableChange(pagination, sorter) {
|
|
37053
37056
|
var params = {
|