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

Function takeReadingOpen

packages/shared/src/components/shell/readingStore.ts:186–190  ·  view source on GitHub ↗
(postId: string)

Source from the content-addressed store, hash-verified

184};
185
186export const takeReadingOpen = (postId: string): string | null => {
187 const pending = pendingOpen;
188 pendingOpen = null;
189 return pending?.post.id === postId ? pending.url : null;
190};
191
192export const useReading = (): ReadingState =>
193 useSyncExternalStore(

Callers 1

ReadingDrawerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected