From 832c128c43ed52c54ada34e61ea92842f46ab7c4 Mon Sep 17 00:00:00 2001 From: Andrew Prifer <2991360+AndrewPrifer@users.noreply.github.com> Date: Mon, 30 May 2022 18:50:11 +0200 Subject: [PATCH] Fix react dep list --- theatre/studio/src/UIRoot/PointerCapturing.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/theatre/studio/src/UIRoot/PointerCapturing.tsx b/theatre/studio/src/UIRoot/PointerCapturing.tsx index dcc0dac..07bdbd5 100644 --- a/theatre/studio/src/UIRoot/PointerCapturing.tsx +++ b/theatre/studio/src/UIRoot/PointerCapturing.tsx @@ -148,7 +148,7 @@ export function usePointerCapturing(forDebugName: string): PointerCapturing { // force release on unmount control.forceRelease() } - }, [forDebugName, pointerCapturingFn]) + }, [control]) return control.capturing }