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

Function peekReadingOpen

packages/shared/src/components/shell/readingStore.ts:181–184  ·  view source on GitHub ↗
(idOrSlug: string)

Source from the content-addressed store, hash-verified

179};
180
181export const peekReadingOpen = (idOrSlug: string): Post | null => {
182 const post = pendingOpen?.post;
183 return post && (post.id === idOrSlug || post.slug === idOrSlug) ? post : null;
184};
185
186export const takeReadingOpen = (postId: string): string | null => {
187 const pending = pendingOpen;

Callers 1

PostPageFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected