SSE Hooks

useIsMounted

Custom hook that determines if the component is currently mounted.

Installation

npx sse-tool add use-is-mounted

Usage

import { useIsMounted } from "./{hooks file}";

const isComponentMounted = useIsMounted();
// Use isComponentMounted() to check if the component is currently mounted before performing certain actions.

API

Return Value

Returns Function.

A function that returns a boolean value indicating whether the component is mounted.

Changelog

c165d — feat: enhance useRoleGuard and useSSR hooks with additional options and documentation

30da4 — feat: add new hooks and their metadata

cf13e — feat: add custom hooks for step navigation, ternary dark mode, timeout, toggle, unmount, and window size

Built with Love • © 2026