The module exports the function onDestroy. It takes an object to watch and a function that should be called some time after the object's destruction. When exactly it is called cannot be relied on, ...
You can create a release to package software, along with release notes and links to binary files, for other people to use. Learn more about releases in our docs.