ESLint react-hooks/purity error in src/screens/ShootingHUD/index.tsx:121
const t0Ref = useRef(performance.now())
performance.now() is impure — calling it during render produces unstable results. Should be initialised inside a useEffect or lazily via a ref.
ESLint react-hooks/purity error in
src/screens/ShootingHUD/index.tsx:121performance.now()is impure — calling it during render produces unstable results. Should be initialised inside auseEffector lazily via a ref.