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
- A Vite plugin that enhances jsx transformation for React☆19Updated 4 years ago
- Manage state locally and globally in React with signals☆12Updated last year
- a collection of packages to compile Tailwind CSS like shorthand syntax into CSS at runtime☆50Updated 4 years ago
- A Babel macro to conditionally import something based on environmental variables.☆51Updated 3 years ago
- A tiny (330B to 357B) and fast utility to find a package's hidden supply / cache directory.☆34Updated 4 years ago
- Hooks to leverage the web-animations API in under a kb☆51Updated 3 years ago
- A simple tool for running npm scripts, with monorepo support.☆23Updated 3 years ago
- Runtime Config mangement for webpack projects☆15Updated 2 years ago
- Performant Calculation of the width and height of a text string using canvas.☆24Updated last year
- CLI to collect stats about React usage on a website☆29Updated last year
- 🔀 An npm package for creating complex comparators, tersely and beautifully.☆18Updated 2 years ago
- Manage request/response cookies in the environments where those are not supported.☆19Updated 9 months ago
- React 15 compatibility layer for Preact☆16Updated 3 weeks ago
- A collection of sample apps demonstrating Preact's compatibility with various 3rd party libraries☆37Updated 2 years ago
- ☆17Updated 2 years ago
- preact release tool☆13Updated 4 years ago
- Preact bindings for urql☆26Updated 5 years ago
- ☆34Updated 6 years ago
- A Fetch API "Headers" polyfill and transformation library.☆33Updated 6 months ago
- A Gatsby plugin to add a chat window to your Gatsby site that integrates with your Slack workspace. Add the plugin to your site and respo…☆11Updated 2 months ago
- A tiny (156B) utility to compare a string against a template mask.☆22Updated 7 years ago
- CLI to strip server-code from sourcemaps☆10Updated last year
- Loads .env files in order based on process.env.NODE_ENV value with [stage].local support☆10Updated 3 years ago
- Track the size of a react-dom element in 540 bytes (without ResizeObserver)☆16Updated 2 years ago
- a simple react hook for scroll-locking☆19Updated 2 years ago
- A tiny (200B) utility to sort route patterns by specificity☆36Updated 5 years ago
- A React-based ponyfill for `field-sizing: content`☆25Updated last year
- A reactive component library for Preact / React (not production ready)☆55Updated 4 years ago
- Tiny, flexible scroll listener with React support☆13Updated 4 years ago