MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / updatePage

Function updatePage

src/components/inputhints/index.js:273–282  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

271 }
272
273 function updatePage() {
274 const offset = (pages + 1) * LIMIT;
275 const hasMore = offset < currentHints.length;
276
277 // if the scroll is at the bottom
278 if ($ul.scrollTop + $ul.clientHeight >= $ul.scrollHeight && hasMore) {
279 pages++;
280 updateUlNow(currentHints, pages);
281 }
282 }
283
284 /**
285 * First time updates the hint instantly, then debounce

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected