This should refetch the server when it's set

This commit is contained in:
Violet Caulfield
2024-10-22 11:15:27 -05:00
parent 47eb81d4c6
commit 8b631eb658
2 changed files with 5 additions and 3 deletions
+3 -3
View File
@@ -22,12 +22,12 @@ export default function Login(): React.JSX.Element {
return (
<Stack.Navigator screenOptions={{ headerShown: false }}>
{
(_.isUndefined(storedServer) || changeServer) ? (
(changeServer) ? (
<Stack.Screen
name="ServerAddress"
options={{
headerShown: false,
animationTypeForReplace: triggerAuth ? 'push' : 'pop'
animationTypeForReplace: triggerAuth || changeServer ? 'push' : 'pop'
}}
component={ServerAddress}
/>
@@ -38,7 +38,7 @@ export default function Login(): React.JSX.Element {
name="ServerAuthentication"
options={{
headerShown: false,
animationTypeForReplace: 'push'
animationTypeForReplace: changeUsername ? 'pop' : 'push'
}}
component={ServerAuthentication}
/>
+2
View File
@@ -67,6 +67,8 @@ const JellyfinAuthenticationContextInitializer = () => {
if (changeServer)
mutateServer();
else
refetchServer();
}, [
changeUsername,
changeServer