We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93412f4 commit df8c9b7Copy full SHA for df8c9b7
packages/react-native-gesture-handler/src/v3/NativeDetector/HostGestureDetector.web.tsx
@@ -74,11 +74,10 @@ const HostGestureDetector = (props: GestureHandlerDetectorProps) => {
74
};
75
76
useEffect(() => {
77
- const newHandlerTags = attachedHandlers.current.difference(
+ attachedHandlers.current = attachedHandlers.current.difference(
78
attachedNativeHandlers.current
79
);
80
- attachedNativeHandlers.current.clear();
81
- detachHandlers(newHandlerTags, attachedNativeHandlers.current);
+ detachHandlers(attachedHandlers.current, attachedNativeHandlers.current);
82
}, [children]);
83
84
0 commit comments