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 c0871e2 commit 0173d7cCopy full SHA for 0173d7c
1 file changed
src/components/transform-wrapper/transform-wrapper.tsx
@@ -32,6 +32,9 @@ export const TransformWrapper = React.forwardRef(
32
33
useEffect(() => {
34
instance.update(props);
35
+ return () => {
36
+ instance.cleanupWindowEvents();
37
+ };
38
}, [instance, props]);
39
40
return <Context.Provider value={instance}>{content}</Context.Provider>;
0 commit comments