mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-10 22:32:17 +02:00
enable refresh for all home carousels, and fix favorite/rating on home
This commit is contained in:
@@ -149,7 +149,12 @@ export const applyRatingOptimisticUpdates = (
|
||||
queryKey: infiniteListQueryKey,
|
||||
});
|
||||
|
||||
infiniteListQueries.forEach(([queryKey, data]) => {
|
||||
const homeQueries = queryClient.getQueriesData({
|
||||
exact: false,
|
||||
queryKey: ['home', 'album'],
|
||||
});
|
||||
|
||||
infiniteListQueries.concat(homeQueries).forEach(([queryKey, data]) => {
|
||||
if (data) {
|
||||
pendingUpdates.push({
|
||||
previousData: data,
|
||||
|
||||
Reference in New Issue
Block a user