Skip to content

Commit

Permalink
replace useEffect with useLayoutEffect
Browse files Browse the repository at this point in the history
  • Loading branch information
ravindra-encoresky committed Aug 27, 2024
1 parent 3edf7ea commit 9031f44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Expensify.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ function Expensify({
Audio.setAudioModeAsync({playsInSilentModeIOS: true});
}, []);

useEffect(() => {
useLayoutEffect(() => {
if (!isNavigationReady || !lastRoute) {
return;
}
Expand Down

0 comments on commit 9031f44

Please sign in to comment.