Open martin-yana opened 9 months ago
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.
useMemo
useRef
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 useuseRef
which do not cause a re render nor a recalculation of the styles.