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

Function handleFilterScroll

src/sidebarApps/extensions/index.js:137–145  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

135}
136
137async function handleFilterScroll(e) {
138 if (isFilterLoading || !filterHasMore || !currentFilter) return;
139
140 const { scrollTop, scrollHeight, clientHeight } = e.target;
141
142 if (scrollTop + clientHeight >= scrollHeight - 50) {
143 await loadFilteredPlugins(currentFilter, false);
144 }
145}
146
147async function loadMorePlugins() {
148 try {

Callers

nothing calls this directly

Calls 1

loadFilteredPluginsFunction · 0.85

Tested by

no test coverage detected