u
This commit is contained in:
1 parent
1b1a54f7dd
commit
fc005e0fb4
22 files changed
+300
-193
No files matched your search
@@ -36,7 +36,7 @@ export const useNavStore = create<NavState>()(
|
||||
navigateToAuth: () => {
|
||||
const pathname = useNavStore.getState().pathname
|
||||
|
||||
if (!pathname.startsWith('/auth')) {
|
||||
if (pathname !== '/auth') {
|
||||
router.replace('/auth')
|
||||
}
|
||||
},
|
||||
@@ -44,7 +44,7 @@ export const useNavStore = create<NavState>()(
|
||||
}),
|
||||
{
|
||||
name: 'nav-storage',
|
||||
// storage: createJSONStorage(() => AsyncStorage),
|
||||
storage: createJSONStorage(() => AsyncStorage),
|
||||
},
|
||||
),
|
||||
)
|
||||
Reference in new issue
Block a user