Fix effect dependency

This commit is contained in:
Mitchell McCaffrey 2020-04-13 10:32:26 +10:00
parent cb93922d59
commit 5575e985dc

View File

@ -16,7 +16,7 @@ function usePreventTouch(elementRef) {
element.removeEventListener("touchstart", prevent3DTouch);
}
};
}, [elementRef.current]);
}, [elementRef]);
}
export default usePreventTouch;