Showing 1-20 of 1,353 packages
useMemo and useCallback but with a stable cache
Same as React's `useCallback`, but returns a stable reference.
A faster, friendlier, and safer useCallback
It's React's useEffect/useMemo/useCallback hooks, except using custom comparison on the inputs, not reference equality
Enforce that all function components are wrapped in `React.memo`, and that all props and deps are wrapped in `useMemo`/`useCallback` so they don’t break memo.
ESLint plugin to remove React hooks (useMemo, useCallback) and memo HOC for cleaner React code
This plugin enforces the wrapping of complex objects or functions (which might generate unnecessary renders or side-effects) in `useMemo` or `useCallback`. It also allows you to programmatically enforce the wrapping of functional components in `memo`, and
ESLint plugin for React Compiler users to flag manual memoization (useMemo, useCallback, React.memo), reminding you to let the compiler do its thing ✨
The debounced version of useCallback.
Call, observe and persist the result of your async functions with ease of `useCallback`!
React hook that is a hybrid of useCallback and the cleanup from useEffect
Pipe-based useCallback react hook
Automatically useCallback() and useMemo()
Rely on useCallback in react app
Asynchronous versions of the `useEffect` and` useCallback` hooks that able to cancel internal code by user requests or component unmounting
Solve the useCallback dependency trap 解决useCallback依赖陷阱
``` import { useCallback } from 'react';
ESLint plugin to enforce useCallback usage in React custom hooks
React's useCallback hook for function declarations
An custom `useCallback` hook which returns a continuously updating ref object. This means the callback ref will always be the latest function. This can be useful for things like event handlers so you don't need to unsubscribe/resubscribe each time the cal