The following code will cause the browser to hang forever:
<ReactPaginate
pageCount={Infinity}
....
/>
Most likely it falls into an endless loop.
While a user shouldn't pass infinity, it can be done by mistake and the fact that it breaks and freezes the whole UI without a notice makes it hard to figure out. For example it will happen if the user divides something 0, that javascript allows.
The following code will cause the browser to hang forever:
Most likely it falls into an endless loop.
While a user shouldn't pass infinity, it can be done by mistake and the fact that it breaks and freezes the whole UI without a notice makes it hard to figure out. For example it will happen if the user divides something 0, that javascript allows.