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
Sorting:
- 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 tree traversal library.☆32Updated last month
- A React-based ponyfill for `field-sizing: content`☆25Updated last year
- 🚪 Find the entry points in a set of JavaScript files.☆42Updated 7 months ago
- React hook for the Device Orientation API☆23Updated 6 years ago
- ☆34Updated 6 years ago
- Preact bindings for urql☆26Updated 5 years ago
- A tiny (200B) utility to sort route patterns by specificity☆36Updated 5 years ago
- CLI to collect stats about React usage on a website☆29Updated last year
- Replace all instances of "@@strings like this" with hashes.☆35Updated 4 years ago
- a collection of packages to compile Tailwind CSS like shorthand syntax into CSS at runtime☆50Updated 4 years ago
- a simple react hook for scroll-locking☆19Updated 2 years ago
- Enhance Next.js development with utilities for local and remote content.☆21Updated 2 years ago
- Loads .env files in order based on process.env.NODE_ENV value with [stage].local support☆10Updated 3 years ago
- This is a proof of concept of a React Hook like implementation for Preact.☆33Updated 2 years ago
- Performant Calculation of the width and height of a text string using canvas.☆24Updated last year
- a react hook that emulates native touch behaviour for things like buttons, list items, and more☆35Updated 6 years ago
- A Babel macro to conditionally import something based on environmental variables.☆51Updated 3 years ago
- A primitive React hook used to coordinate indexed collections effortlessly.☆74Updated last year
- A collection of sample apps demonstrating Preact's compatibility with various 3rd party libraries☆37Updated 2 years ago
- Manage request/response cookies in the environments where those are not supported.☆19Updated 11 months ago
- ☆16Updated last month
- perform asynchronous operations synchronously (intended for use with babel-plugin-macros)☆39Updated 6 months ago
- ☆18Updated last year
- 🔀 An npm package for creating complex comparators, tersely and beautifully.☆18Updated 2 years ago
- Tiny preact component for async tasks☆24Updated 7 years ago
- A reactive component library for Preact / React (not production ready)☆55Updated 4 years ago
- Hooks to leverage the web-animations API in under a kb☆52Updated 3 years ago
- HTMDX: Lightweight runtime for mdx-like markdown☆88Updated 2 years ago