glenjamin / glenjamin/react-hotkey
hotkey.deactivate or similar?
Open
- Dominant language
- JavaScript
- Stars
- 35
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
First off, thanks for a great mixin! I'm looking manual hooks similar to what `componentDidMount` and `componentWillUnmount` already do, allowing this sort of functionality:
``` js
componentWillReceiveProps(nextProps) {
if (nextProps.isHotkeyActive) {
hotkey.activate();
} else {
hotkey.deactivate(); // hotkey.disable unregisters all listeners :/
}
},
```
Is this something you're planning on adding support for?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.