Skip to content

Commit

Permalink
fix: early useEffect return invalidating back handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Vali-98 committed Oct 22, 2024
1 parent 6f2ee71 commit 9e8f433
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion app/CharacterEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 9e8f433

Please sign in to comment.