mirror of
https://github.com/Jellify-Music/App.git
synced 2026-05-12 22:38:38 -05:00
This should refetch the server when it's set
This commit is contained in:
@@ -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}
|
||||
/>
|
||||
|
||||
@@ -67,6 +67,8 @@ const JellyfinAuthenticationContextInitializer = () => {
|
||||
|
||||
if (changeServer)
|
||||
mutateServer();
|
||||
else
|
||||
refetchServer();
|
||||
}, [
|
||||
changeUsername,
|
||||
changeServer
|
||||
|
||||
Reference in New Issue
Block a user