use-memo-one
JSON →useMemoOne and useCallbackOne are React hooks that provide a stable cache semantic guarantee, unlike the built-in useMemo and useCallback which React may clear at any time (e.g. for memory freeing). This is particularly useful for concurrent mode and cases where reference stability is critical. v1.1.3 is current and stable, with peer dependency on React ^16.8.0 || ^17.0.0 || ^18.0.0. It also exports aliases useMemo and useCallback for drop-in replacement, but those will clash with React's own hooks if imported together.
Resources
packageuse-memo-one ↗