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

Function removeCachedPagePost

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

Source from the content-addressed store, hash-verified

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

Callers 1

useFeedFunction · 0.90

Calls 1

updateCachedPageFunction · 0.85

Tested by

no test coverage detected