changing login flow animations and awaiting for api refetch

This commit is contained in:
Violet Caulfield
2024-10-22 11:20:00 -05:00
parent 8b631eb658
commit 288f047b9d
2 changed files with 4 additions and 3 deletions

View File

@@ -27,7 +27,7 @@ export default function Login(): React.JSX.Element {
name="ServerAddress"
options={{
headerShown: false,
animationTypeForReplace: triggerAuth || changeServer ? 'push' : 'pop'
animationTypeForReplace: triggerAuth ? 'push' : 'pop'
}}
component={ServerAddress}
/>
@@ -46,7 +46,8 @@ export default function Login(): React.JSX.Element {
<Stack.Screen
name="LibrarySelection"
options={{
headerShown: false
headerShown: false,
animationTypeForReplace: 'push'
}}
component={ServerLibrary}
/>

View File

@@ -35,7 +35,7 @@ export default function ServerLibrary(): React.JSX.Element {
mutationFn: async () => {
await mutateServerCredentials();
setChangeUsername(true);
return refetchApi()
return await refetchApi()
}
});