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

Function closeReading

packages/shared/src/components/shell/readingStore.ts:159–165  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

157// The drawer's own close (the X, a link in the article to a page of the
158// app): the post page stays, so from a feed card nothing in history moves.
159export const closeReading = (): void => {
160 if (state.fromFeed) {
161 set(closed);
162 return;
163 }
164 requestReadingClose();
165};
166
167// Read on a feed card: the shell routes to the post page, which opens the
168// article behind itself on arrival, the same drawer as Read on the post.

Callers 2

ReadingDrawerFunction · 0.90
onArticleLinkFunction · 0.90

Calls 2

requestReadingCloseFunction · 0.85
setFunction · 0.70

Tested by

no test coverage detected