sergiodxa / use-safe-callback
Wrap a function to ensure you never call it if a component is unmounted, useful to avoid cases where an async code could finish after a component has unmounted and it tries to update a state
☆12Updated 2 years ago
Alternatives and similar repositories for use-safe-callback:
Users that are interested in use-safe-callback are comparing it to the libraries listed below
- Glob search in constant time thanks to git cache☆26Updated 4 years ago
- Manage state locally and globally in React with signals☆12Updated last year
- A Babel macro to conditionally import something based on environmental variables.☆51Updated 3 years ago
- A Vite plugin that enhances jsx transformation for React☆19Updated 4 years ago
- Runtime Config mangement for webpack projects☆15Updated last year
- A tiny (330B to 357B) and fast utility to find a package's hidden supply / cache directory.☆34Updated 4 years ago
- Replace all instances of "@@strings like this" with hashes.☆35Updated 4 years ago
- ☆26Updated 2 months ago
- a collection of packages to compile Tailwind CSS like shorthand syntax into CSS at runtime☆50Updated 4 years ago
- ☆34Updated 6 years ago
- Log a state or prop every time it changes☆12Updated 2 years ago
- A tiny (200B) utility to sort route patterns by specificity☆36Updated 5 years ago
- a simple react hook for scroll-locking☆19Updated 2 years ago
- A simple tool for running npm scripts, with monorepo support.☆23Updated 3 years ago
- Silly React hook for CSS☆25Updated 3 years ago
- Preact bindings for urql☆26Updated 5 years ago
- Performant Calculation of the width and height of a text string using canvas.☆24Updated last year
- This is a proof of concept of a React Hook like implementation for Preact.☆33Updated 2 years ago
- Track the size of a react-dom element in 540 bytes (without ResizeObserver)☆16Updated 2 years ago
- 🚪 Find the entry points in a set of JavaScript files.☆41Updated 4 months ago
- ☆17Updated 2 years ago
- A reactive component library for Preact / React (not production ready)☆55Updated 4 years ago
- ESLint rule for preventing the full import of big libraries when just a part of it can be imported.☆10Updated 5 years ago
- A babel plugin to remove specific named exports and more☆25Updated 3 years ago
- React hook for the Device Orientation API☆23Updated 6 years ago
- CLI to collect stats about React usage on a website☆29Updated last year
- Enhance Next.js development with utilities for local and remote content.☆21Updated last year
- Tiny & fast alternative to path-to-regexp☆18Updated 2 years ago
- 🔀 An npm package for creating complex comparators, tersely and beautifully.☆18Updated last year
- ☆15Updated 4 months ago