MCPcopy Index your code
hub / github.com/codeaashu/DevDisplay / getPaginatedData

Function getPaginatedData

src/App.js:106–111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

104 }, [currentPage]);
105
106 const getPaginatedData = () => {
107 const data = searching ? profiles : shuffledProfiles;
108 const startIndex = (currentPage - 1) * recordsPerPage;
109 const endIndex = startIndex + recordsPerPage;
110 return data.slice(startIndex, endIndex);
111 };
112
113 const renderProfiles = () => {
114 if (loadingProfiles) {

Callers 1

App.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected