question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can we remove tap from hook?

See original GitHub issue
var 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:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

5reactions
Hypercubedcommented, Jan 2, 2020

@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.

1reaction
alexander-akaitcommented, Sep 12, 2019

Why? I can’t undestand, also it is internal module for webpack, what is use case using this without webpack?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found