Skip to content

Commit 9027532

Browse files
committed
Use UNSTABLE_routeNamesChangeBehavior: 'lastUnhandled'
1 parent 29475e5 commit 9027532

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/App.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ import { createURL } from 'expo-linking';
77
import { Home, Profile, SignIn, useAuth } from './screens';
88

99
const RootStack = createNativeStackNavigator({
10+
// Setting this option to 'lastUnhandled' will let React Navigation remember unhandled actions
11+
// So if a deep link was not handled due to missing auth, it will be retried after auth
12+
UNSTABLE_routeNamesChangeBehavior: 'lastUnhandled',
1013
groups: {
1114
authenticated: {
1215
if: () => useAuth((state) => state.authenticated),

0 commit comments

Comments
 (0)