Current collected state Current
Observed since 20 Oct, 21:48 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
@-ft/disposer
util Disposer
Disposercompose multiple disposables easily into single disposable
function SomeEffect() {
useEffect(() => {
const timeout = setInterval(() => console.log('Hello world!'), 1000);
const handler = (e) => e.stopPropagation();
document.body.addEventListener('click', handler, true);
return new Disposer()
.add(() => clearInterval(timeout))
.add(() => document.removeEventListener('click', handler, true))
.disposable();
}, []);
return null;
}
Download counts and popularity will appear here as the collector receives them.
Declarations describe requirements; they are not a resolved dependency graph.
Source distribution
{
"integrity": "sha512-xUqptSv8sMgIoQJU+ftMGhKu2AEqhCmbcW609qmULNtyz/pQSYH5CM9MrHdlVgs2oOqDKGf5NlxtEGW0L7vNUA==",
"shasum": "c192cd2a6a79734489d68005a3eb4989fc671dfc",
"tarball": "https://registry.npmjs.org/@-ft/disposer/-/disposer-0.1.0.tgz",
"fileCount": 4,
"unpackedSize": 1869,
"signatures": [
{
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
"sig": "MEUCIQDsnKMGzpSsgHLN6EAhhDVe25WUFJfE6xauW8vOMscNvQIgSTtgfiCqjOepjpgI9hCtB8UDEWw+NinqvL11diMIGy4="
}
]
}Observed since 20 Oct, 21:48 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:fcfcebc436d30edee5ce4083b334f8c76e8cb1d674fa73ea26d796f44124abf2