MCPcopy Create free account
hub / github.com/dailydotdev/apps / removeCachedPagePost

Function removeCachedPagePost

packages/shared/src/lib/query.ts:476–483  ·  view source on GitHub ↗
(feedQueryKey: QueryKey, queryClient: QueryClient)

Source from the content-addressed store, hash-verified

474
475export const removeCachedPagePost =
476 (feedQueryKey: QueryKey, queryClient: QueryClient) =>
477 (pageIndex: number, index: number): void => {
478 updateCachedPage(feedQueryKey, queryClient, pageIndex, (page) => {
479 // eslint-disable-next-line no-param-reassign
480 page.edges.splice(index, 1);
481 return page;
482 });
483 };
484
485export const updateAuthorContentPreference = ({
486 data,

Callers 1

useFeedFunction · 0.90

Calls 1

updateCachedPageFunction · 0.85

Tested by

no test coverage detected