mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 07:55:18 +00:00
fix: personalized playlists not loading
This commit is contained in:
parent
27e8acbfe7
commit
caa340803f
@ -21,7 +21,7 @@ class ViewsQueries {
|
||||
|
||||
final locale = useContext().l10n.localeName;
|
||||
|
||||
return useQuery<Map<String, dynamic>?, dynamic>("views/$view", () {
|
||||
final query = useQuery<Map<String, dynamic>?, dynamic>("views/$view", () {
|
||||
if (auth == null) return null;
|
||||
return customSpotify.getView(
|
||||
view,
|
||||
@ -30,5 +30,18 @@ class ViewsQueries {
|
||||
locale: locale,
|
||||
);
|
||||
});
|
||||
|
||||
useEffect(() {
|
||||
return ref.listenManual(
|
||||
customSpotifyEndpointProvider,
|
||||
(previous, next) {
|
||||
if (previous != next) {
|
||||
query.refresh();
|
||||
}
|
||||
},
|
||||
).close;
|
||||
}, [query]);
|
||||
|
||||
return query;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user