From b2b98fad2ab083e551f5974fd8bde702ba58cade Mon Sep 17 00:00:00 2001 From: Tomek Zawadzki Date: Thu, 30 Jan 2025 21:14:25 +0100 Subject: [PATCH] Fix updating parser when worklet hash doesn't change but closure does change --- src/MarkdownTextInput.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/MarkdownTextInput.tsx b/src/MarkdownTextInput.tsx index bff19286b..04395475a 100644 --- a/src/MarkdownTextInput.tsx +++ b/src/MarkdownTextInput.tsx @@ -105,8 +105,7 @@ const MarkdownTextInput = React.forwardRef { return registerParser(props.parser); - // eslint-disable-next-line react-hooks/exhaustive-deps - }, [workletHash]); + }, [props.parser]); React.useEffect(() => { return () => unregisterParser(parserId);