@ahooksjs/use-query-display
Advanced tools
Comparing version 0.2.13 to 0.2.14-alpha.0
@@ -43,3 +43,4 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } | ||
var usePlugin = function usePlugin(pluginManagerContext) { | ||
var pluginManager = useMemo(createPluginManager, []); | ||
var pluginManagerRef = useRef(createPluginManager()); | ||
var pluginManager = pluginManagerRef.current; | ||
useInit(function () { | ||
@@ -46,0 +47,0 @@ pluginManager.context.set(pluginManagerContext); |
@@ -94,3 +94,4 @@ "use strict"; | ||
var usePlugin = function usePlugin(pluginManagerContext) { | ||
var pluginManager = (0, _react.useMemo)(_plugin.default, []); | ||
var pluginManagerRef = (0, _react.useRef)((0, _plugin.default)()); | ||
var pluginManager = pluginManagerRef.current; | ||
useInit(function () { | ||
@@ -97,0 +98,0 @@ pluginManager.context.set(pluginManagerContext); |
{ | ||
"name": "@ahooksjs/use-query-display", | ||
"version": "0.2.13", | ||
"version": "0.2.14-alpha.0", | ||
"scripts": { | ||
@@ -21,3 +21,3 @@ "build:tsc": "tsc --project tsconfig.build.json --declarationDir ./lib && tsc --project tsconfig.build.json --declarationDir ./es" | ||
], | ||
"gitHead": "df23dd6c1566cb283a271ccc09dde0dffe27dc11" | ||
"gitHead": "ce39af98cec9026abbd05f64b6f9fe9e648c06f1" | ||
} |
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
43652
1056