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

Function closeReading

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

Source from the content-addressed store, hash-verified

147// The drawer's own close (the X, a link in the article to a page of the
148// app): the post page stays, so from a feed card nothing in history moves.
149export const closeReading = (): void => {
150 if (state.fromFeed) {
151 set(closed);
152 return;
153 }
154 requestReadingClose();
155};
156
157// Read on a feed card: the shell routes to the post page, which opens the
158// 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