From 9e8f433079b4087719049d3bee31f6ae60463916 Mon Sep 17 00:00:00 2001 From: Vali98 Date: Tue, 22 Oct 2024 16:03:10 +0800 Subject: [PATCH] fix: early useEffect return invalidating back handler --- app/CharacterEditor.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/app/CharacterEditor.tsx b/app/CharacterEditor.tsx index 36c35ad..7fcf7a3 100644 --- a/app/CharacterEditor.tsx +++ b/app/CharacterEditor.tsx @@ -70,7 +70,6 @@ const ChracterEditor = () => { const initialRender = useRef(true) useEffect(() => { - if (edited) return if (initialRender.current) { initialRender.current = false const removeListener = navigation.addListener('beforeRemove', (e) => {