rn-range-slider icon indicating copy to clipboard operation
rn-range-slider copied to clipboard

useMemo with useRef variables

Open martin-yana opened this issue 2 years ago • 0 comments
trafficstars

https://github.com/githuboftigran/rn-range-slider/blob/5b0c535f1ac98b8d8cef07ee9ca17a7cc55a29f8/hooks.tsx#L183

Hi, just wondering why it is necessary to use useMemo if the dependencies are variables that use useRef which do not cause a re render nor a recalculation of the styles.

martin-yana avatar Oct 10 '23 16:10 martin-yana