This release includes optimizations based on library size and the addition of observer removal.
const instance = uos(0, 1, p => {
// Call itself to remove it
if (p === 1) instance();
// Optionally add true to remove the scroll listener too
if (p === 1) instance(true);
});
Made possible by @lukeed, thanks! 🙌