kn-hooks 0.0.43 → 0.0.44

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kn-hooks",
3
- "version": "0.0.43",
3
+ "version": "0.0.44",
4
4
  "scripts": {
5
5
  "dev": "cross-env env_api=dev env_package=dev webpack-dev-server --progress",
6
6
  "build": "cross-env env_api=prod env_package=prod webpack --config webpack.config.js",
@@ -117,9 +117,12 @@ const usePagination = (props) => {
117
117
  _pagination = _pagination ?? pagination;
118
118
  _pagination = { ...pagination, ..._pagination };
119
119
 
120
- const { current, pageSize } = _pagination;
120
+ const { current, pageSize, sort } = _pagination;
121
121
 
122
122
  let params = { pageSize };
123
+ if(sort){
124
+ params.sort = sort;
125
+ }
123
126
  if (mode == MODE.scrollLoad) {
124
127
  params.cursor = _pagination.cursor;
125
128
  } else {