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