+1
apps/web/src/hooks/useNowPlaying.tsx
+1
apps/web/src/hooks/useNowPlaying.tsx
+2
-7
apps/web/src/pages/home/feed/Feed.tsx
+2
-7
apps/web/src/pages/home/feed/Feed.tsx
···
74
74
}
75
75
76
76
const message = JSON.parse(event.data);
77
-
queryClient.setQueryData(["now-playings"], () => [
78
-
...message.nowPlayings,
79
-
]);
80
-
queryClient.setQueryData(
81
-
["scrobblesChart"],
82
-
() => message.scrobblesChart,
83
-
);
77
+
queryClient.setQueryData(["now-playings"], [...message.nowPlayings]);
78
+
queryClient.setQueryData(["scrobblesChart"], message.scrobblesChart);
84
79
85
80
await queryClient.invalidateQueries({
86
81
queryKey: ["infiniteFeed", feedUri],