Accounts loading improvements

This commit is contained in:
Arkadiusz Fal
2022-12-20 23:51:04 +01:00
parent a32f417776
commit 78940a005b
6 changed files with 17 additions and 11 deletions

View File

@@ -38,16 +38,6 @@ struct ContentView: View {
TVNavigationView()
#endif
}
.onChange(of: accounts.current) { _ in
subscriptions.load(force: true)
playlists.load(force: true)
}
.onChange(of: accounts.signedIn) { newValue in
guard newValue else { return }
subscriptions.load(force: true)
playlists.load(force: true)
}
#if os(iOS)
.overlay(videoPlayer)
.sheet(isPresented: $navigation.presentingShareSheet) {