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
- Loads .env files in order based on process.env.NODE_ENV value with [stage].local support☆10Updated 3 years ago
- a collection of packages to compile Tailwind CSS like shorthand syntax into CSS at runtime☆50Updated 4 years ago
- A Vite plugin that enhances jsx transformation for React☆19Updated 4 years ago
- Tiny, flexible scroll listener with React support☆13Updated 4 years ago
- A Fetch API "Headers" polyfill and transformation library.☆33Updated 8 months ago
- ☆34Updated 6 years ago
- 🚪 Find the entry points in a set of JavaScript files.☆42Updated 6 months ago
- Preact bindings for urql☆26Updated 5 years ago
- ☆17Updated 2 years ago
- ☆16Updated 3 weeks ago
- A Babel macro to conditionally import something based on environmental variables.☆51Updated 3 years ago
- CLI to collect stats about React usage on a website☆29Updated last year
- A tiny (156B) utility to compare a string against a template mask.☆22Updated 7 years ago
- A React-based ponyfill for `field-sizing: content`☆25Updated last year
- 🔀 An npm package for creating complex comparators, tersely and beautifully.☆18Updated 2 years ago
- Log a state or prop every time it changes☆12Updated 2 years ago
- Replace all instances of "@@strings like this" with hashes.☆35Updated 4 years ago
- a react hook that emulates native touch behaviour for things like buttons, list items, and more☆35Updated 5 years ago
- A simple tool for running npm scripts, with monorepo support.☆23Updated 3 years ago
- Manage request/response cookies in the environments where those are not supported.☆19Updated 10 months ago
- a simple react hook for scroll-locking☆19Updated 2 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
- The CSS properties supported by all three major web browser engines.☆20Updated 5 years ago
- React hook for the Device Orientation API☆23Updated 6 years ago
- A tiny (200B) utility to sort route patterns by specificity☆36Updated 5 years ago
- React Hook to get the system theme (OS theme: light or dark) based on prefers-colors-scheme media query and subscribes to changes as well…☆18Updated 2 years ago
- Runtime Config mangement for webpack projects☆15Updated 2 years ago
- An idle-until-urgent component hydrator.Updated 4 years ago