@redocly/theme
Version:
Shared UI components lib
14 lines • 419 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.useUnmount = void 0;
const react_1 = require("react");
const useUnmount = (callback) => {
(0, react_1.useEffect)(() => {
return () => {
callback();
};
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
};
exports.useUnmount = useUnmount;
//# sourceMappingURL=use-unmount.js.map