@ahooksjs/use-table
Advanced tools
Comparing version 0.1.5 to 0.1.6-alpha.0
@@ -13,2 +13,3 @@ export declare const PREPARE = "prepare"; | ||
export declare const methods: { | ||
ON_REFRESH_DEPS: string; | ||
ON_MOUNT: string; | ||
@@ -15,0 +16,0 @@ ON_PAGE_SIZE_CHANGE: string; |
@@ -13,2 +13,3 @@ export var PREPARE = 'prepare'; | ||
export var methods = { | ||
ON_REFRESH_DEPS: 'onRefreshDeps', | ||
ON_MOUNT: 'onMount', | ||
@@ -15,0 +16,0 @@ ON_PAGE_SIZE_CHANGE: 'onPageSizeChange', |
@@ -123,3 +123,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } | ||
}); | ||
useUpdateEffect(query, refreshDeps); | ||
useUpdateEffect(function () { | ||
query({}, { | ||
queryFrom: methods.ON_REFRESH_DEPS | ||
}); | ||
}, refreshDeps); | ||
var $tableProps = tableQueryProps.tableProps, | ||
@@ -126,0 +130,0 @@ getParams = tableQueryProps.getParams, |
@@ -13,2 +13,3 @@ export declare const PREPARE = "prepare"; | ||
export declare const methods: { | ||
ON_REFRESH_DEPS: string; | ||
ON_MOUNT: string; | ||
@@ -15,0 +16,0 @@ ON_PAGE_SIZE_CHANGE: string; |
@@ -27,2 +27,3 @@ "use strict"; | ||
var methods = { | ||
ON_REFRESH_DEPS: 'onRefreshDeps', | ||
ON_MOUNT: 'onMount', | ||
@@ -29,0 +30,0 @@ ON_PAGE_SIZE_CHANGE: 'onPageSizeChange', |
@@ -182,3 +182,7 @@ "use strict"; | ||
}); | ||
(0, _use.useUpdateEffect)(query, refreshDeps); | ||
(0, _use.useUpdateEffect)(function () { | ||
query({}, { | ||
queryFrom: _config.methods.ON_REFRESH_DEPS | ||
}); | ||
}, refreshDeps); | ||
var $tableProps = tableQueryProps.tableProps, | ||
@@ -185,0 +189,0 @@ getParams = tableQueryProps.getParams, |
{ | ||
"name": "@ahooksjs/use-table", | ||
"version": "0.1.5", | ||
"version": "0.1.6-alpha.0", | ||
"scripts": { | ||
@@ -10,3 +10,3 @@ "build:tsc": "tsc --project tsconfig.build.json --declarationDir ./lib && tsc --project tsconfig.build.json --declarationDir ./es" | ||
"dependencies": { | ||
"@ahooksjs/use-query-display": "^0.1.5" | ||
"@ahooksjs/use-query-display": "^0.1.6-alpha.0" | ||
}, | ||
@@ -25,3 +25,3 @@ "peerDependencies": { | ||
], | ||
"gitHead": "5588a1bfa933d355407b88318534b904bba1c33e" | ||
"gitHead": "aeef4ed0e64e22f8de7a7d5f0592c5ad775efc9e" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
83517
1807