react-merge-refs
react-merge-refs copied to clipboard
React utility to merge refs π
When a React element receives a different `ref` on re-renderer the previous `ref` is updated to `null` and the new one is given the current value β regardless of changes...
Hello! Not sure if this should be a discussion instead, but with React 19 officially out, I noticed a little incompatibility issue. The `mergeRefs` function doesnβt handle the new [cleanup...
Hello everyone I was trying to build my Expo React Native app, and I was stuck at some error like this: ``` Starting Metro Bundler Error: While trying to resolve...
## π Feature Proposal [`useMergeRefs`](https://github.com/gregberge/react-merge-refs/blob/f81b2fa4110a660d82d6558ef99826120ce43805/src/index.ts#L33-L40) that tracks refs individually instead of relying on `useMemo`. ## Motivation [This reproduction](https://codesandbox.io/p/sandbox/react-merge-refs-qgkhjm) explains the issue. Even if `useMergeRef` can make stable refs under _some_...