MCPcopy Index your code
hub / github.com/utterance/utterances / renderPage

Function renderPage

src/utterances.ts:94–98  ·  view source on GitHub ↗
(page: IssueComment[])

Source from the content-addressed store, hash-verified

92
93async function renderComments(issue: Issue, timeline: TimelineComponent) {
94 const renderPage = (page: IssueComment[]) => {
95 for (const comment of page) {
96 timeline.insertComment(comment, false);
97 }
98 };
99
100 const pageCount = Math.ceil(issue.comments / PAGE_SIZE);
101 // always load the first page.

Callers 2

renderCommentsFunction · 0.85
loadFunction · 0.85

Calls 1

insertCommentMethod · 0.80

Tested by

no test coverage detected