Fix effect dependency
This commit is contained in:
@@ -16,7 +16,7 @@ function usePreventTouch(elementRef) {
|
||||
element.removeEventListener("touchstart", prevent3DTouch);
|
||||
}
|
||||
};
|
||||
}, [elementRef.current]);
|
||||
}, [elementRef]);
|
||||
}
|
||||
|
||||
export default usePreventTouch;
|
||||
|
||||
Reference in New Issue
Block a user