2 repositorios
Utilities that prevent state updates or callbacks from executing after a component has been unmounted.
Distinct from Promise-Based State Resolution: Closest candidates focus on promise conversion or security sandboxing, not React component lifecycle guards.
Explore 2 awesome GitHub repositories matching web development · Mounted Component Guards. Refine with filters or upvote what's useful.
react-use is a collection of reusable state and effect hooks for managing common logic in React applications. It serves as a comprehensive library for implementing state management patterns and wrapping various browser APIs into consistent hook interfaces. The project provides a specialized toolkit for DOM interaction and browser API integration, allowing components to track element dimensions, manage cookies, and monitor hardware sensors. It includes a suite of animation and timing utilities for physics-based numeric interpolation and frame-synced state updates. Beyond basic state managemen
Provides a mechanism to ensure asynchronous callbacks only execute if the component remains mounted.
usehooks-ts is a comprehensive collection of reusable TypeScript-based hooks designed for managing state, DOM events, and browser API interactions within React applications. It provides a typed library of functions to handle common frontend patterns and side effects. The project distinguishes itself by offering specialized hooks for browser integration, including tools for interacting with the system clipboard, managing local and session storage persistence, and loading external scripts. It also includes utilities for responsive UI development, such as tracking media queries, window dimension
Includes a guard utility that prevents state updates on components after they have been unmounted.