react-hotkeys-hook
Advanced tools
Comparing version 4.0.0-6 to 4.0.0-7
{ | ||
"name": "react-hotkeys-hook", | ||
"version": "4.0.0-6", | ||
"version": "4.0.0-7", | ||
"repository": "https://JohannesKlauss@github.com/JohannesKlauss/react-keymap-hook.git", | ||
@@ -5,0 +5,0 @@ "homepage": "https://johannesklauss.github.io/react-hotkeys-hook/", |
@@ -37,7 +37,7 @@ import { HotkeyCallback, Keys, OptionsOrDependencyArray, RefType } from './types' | ||
const { activeScopes } = useHotkeysContext() | ||
const { enabledScopes } = useHotkeysContext() | ||
const proxy = useBoundHotkeysProxy() | ||
useLayoutEffect(() => { | ||
if (memoisedOptions?.enabled === false || !isScopeActive(activeScopes, memoisedOptions?.scopes)) { | ||
if (memoisedOptions?.enabled === false || !isScopeActive(enabledScopes, memoisedOptions?.scopes)) { | ||
return | ||
@@ -121,5 +121,5 @@ } | ||
} | ||
}, [keys, cb, memoisedOptions, activeScopes]) | ||
}, [keys, cb, memoisedOptions, enabledScopes]) | ||
return ref | ||
} |
Sorry, the diff of this file is not supported yet
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
910649