Pagination component is eating memory sice 1e7b8db It's slow and can consume gigabytes of RAM.
This is due to the use of Array(length).fill() in the loop. Thus, instead of creating only the necessary nodes for only visible page numbers, nodes are created even for invisible pages.
Paginationcomponent is eating memory sice 1e7b8db It's slow and can consume gigabytes of RAM.This is due to the use of
Array(length).fill()in the loop. Thus, instead of creating only the necessary nodes for only visible page numbers, nodes are created even for invisible pages.