From b5ea61f431f27f985c731c2cc34c34e14fbbf594 Mon Sep 17 00:00:00 2001 From: teodorus-nathaniel Date: Fri, 5 Jul 2024 20:48:04 +0700 Subject: [PATCH] Remove invalidation for my super like check after like because sometimes the data is delayed --- src/services/datahub/content-staking/utils.tsx | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/services/datahub/content-staking/utils.tsx b/src/services/datahub/content-staking/utils.tsx index 6316aea07..56e807af1 100644 --- a/src/services/datahub/content-staking/utils.tsx +++ b/src/services/datahub/content-staking/utils.tsx @@ -4,11 +4,7 @@ import { QueryClient } from '@tanstack/react-query' import { ReactNode } from 'react' import { toast } from 'sonner' import { SubscribeSuperLikeSubscription } from '../generated-query' -import { - getAddressLikeCountToPostQuery, - getSuperLikeCountQuery, - getTodaySuperLikeCountQuery, -} from './query' +import { getSuperLikeCountQuery, getTodaySuperLikeCountQuery } from './query' export function toastSuperLikeNotification( queryClient: QueryClient, @@ -18,10 +14,6 @@ export function toastSuperLikeNotification( const { post, staker } = eventData.entity getSuperLikeCountQuery.invalidate(queryClient, post.persistentId) if (staker.id === myAddress && post.persistentId) { - getAddressLikeCountToPostQuery.invalidate(queryClient, { - address: myAddress, - postId: post.persistentId, - }) const todayLike = getTodaySuperLikeCountQuery.getQueryData( queryClient, myAddress