Skip to content

v1.1.0

Latest
Compare
Choose a tag to compare
@vaneenige vaneenige released this 15 Jan 07:32
· 2 commits to master since this release

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! 🙌