We will be sunsetting Advisor during Jan, 2026 and will instead be providing information in Snyk Security DB.

You can begin to take advantage of Snyk Security DB today for a unified, package-centric experience.

How to use @rooks/use-will-unmount - 1 common examples

To help you get started, we’ve selected a few @rooks/use-will-unmount examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github imbhargav5 / rooks / packages / storybook / src / will-unmount.js View on Github external
function Message() {
  useWillUnmount(function() {
    alert("Message will be unmounted now.");
  });
  return <p> Message </p>;
}

@rooks/use-will-unmount

A React hook for componentWillUnmount lifecycle method

MIT
Latest version published 5 years ago

Package Health Score

63 / 100
Full package analysis

Popular @rooks/use-will-unmount functions