+5
-3
apps/web/src/pages/home/feed/Feed.tsx
+5
-3
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"], () => message.nowPlayings);
77
+
queryClient.setQueryData(["now-playings"], () => [
78
+
...message.nowPlayings,
79
+
]);
78
80
queryClient.setQueryData(
79
81
["scrobblesChart"],
80
82
() => message.scrobblesChart,
···
83
85
await queryClient.invalidateQueries({
84
86
queryKey: ["infiniteFeed", feedUri],
85
87
});
86
-
await queryClient.invalidateQueries({ queryKey: ["now-playings"] });
87
-
await queryClient.invalidateQueries({ queryKey: ["scrobblesChart"] });
88
+
// await queryClient.invalidateQueries({ queryKey: ["now-playings"] });
89
+
// await queryClient.invalidateQueries({ queryKey: ["scrobblesChart"] });
88
90
};
89
91
90
92
return () => {