Skip to content

Commit

Permalink
Revert "Use the query parameters hasher in sites-overview/SiteSetFavo…
Browse files Browse the repository at this point in the history
…rite"

This reverts commit 32967b4.
  • Loading branch information
cleacos committed Aug 30, 2024
1 parent 7eae1ab commit c0287ac
Showing 1 changed file with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { Icon, starFilled, starEmpty } from '@wordpress/icons';
import clsx from 'clsx';
import { useTranslate } from 'i18n-calypso';
import { useContext } from 'react';
import { hashParameters } from 'calypso/data/agency-dashboard/use-fetch-dashboard-sites';
import useToggleFavoriteSiteMutation from 'calypso/data/agency-dashboard/use-toggle-favourite-site-mutation';
import { useDispatch } from 'calypso/state';
import { recordTracksEvent } from 'calypso/state/analytics/actions';
Expand All @@ -28,17 +27,12 @@ export default function SiteSetFavorite( { isFavorite, siteId, siteUrl }: Props

const { filter, search, currentPage, sort } = useContext( SitesOverviewContext );
const { showOnlyFavorites } = filter;
const queryKey = [
'jetpack-agency-dashboard-sites',
hashParameters( [ search, currentPage, filter, sort ] ),
];
const queryKey = [ 'jetpack-agency-dashboard-sites', search, currentPage, filter, sort ];
const siblingQueryKey = [
'jetpack-agency-dashboard-sites',
hashParameters( [
search,
currentPage,
{ ...filter, ...sort, showOnlyFavorites: ! showOnlyFavorites },
] ),
search,
currentPage,
{ ...filter, ...sort, showOnlyFavorites: ! showOnlyFavorites },
];
const successNoticeId = 'success-notice';

Expand Down

0 comments on commit c0287ac

Please sign in to comment.