MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / selectAndRead

Function selectAndRead

ui/src/components/InboxSidebar.tsx:52–55  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

50
51 /** select + mark read in one. Used by every selection mutation site. */
52 const selectAndRead = (id: string) => {
53 select(id)
54 markRead(id)
55 }
56
57 // Default-select the first row on first non-empty load. Latch once.
58 const everSelectedRef = useRef(false)

Callers 2

InboxSidebarFunction · 0.85
onKeyFunction · 0.85

Calls 1

markReadFunction · 0.50

Tested by

no test coverage detected