Can we remove tap from hook?
See original GitHub issuevar hook = new SyncHook(['param'])
var fn = param => console.log(param)
hook.tap('example', fn)
hook.call('frist')
// frist
setTimeout(() => {
hook.remove(fn)
}, 3000)
Issue Analytics
- State:
- Created 4 years ago
- Reactions:4
- Comments:12 (4 by maintainers)
Top Results From Across the Web
How to Remove a Stubborn Command Hook
No big deal! You can still get it off damage-free. First, warm up the adhesive with a hairdryer. 30 seconds or so seems...
Read more >Add or remove your phone number in Messages or FaceTime
If you see “Use your Apple ID for iMessage,” tap it and sign in with the same Apple ID that you use on...
Read more >How to Replace a Shower Faucet - The Home Depot
1. Turn off the water supply.; 2. When replacing a shower faucet, take off the shower head by turning the connecting nut counterclockwise...
Read more >Ultra Stainless Steel Hook Removal Fishing Tool, Freshwater ...
Amazon.com : Ultra Stainless Steel Hook Removal Fishing Tool, ... FREE delivery Saturday, January 7 if you spend $25 on items shipped by...
Read more >Fix Bluetooth problems on Android - Google Support
If your car or Bluetooth accessory isn't connecting to your phone, try the solutions below. Optional: Ask your Google Assist.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@sokra Actually this is a real shame. tapable has a great API that’s useful outside webpack. Lacking the ability to remove a tap really diminishes it’s value.
Why? I can’t undestand, also it is internal module for webpack, what is use case using this without webpack?