MaskingTechnology / comify

Comic based social network built with Jitar
GNU Affero General Public License v3.0
3 stars 1 forks source link

Paginated data is loaded twice #336

Closed petermasking closed 5 days ago

petermasking commented 5 days ago

Features that use the usePagination hook seems to load the data twice. We need to figure out what the problem is and how we can solve it.

petermasking commented 5 days ago

The hook contains useEffects for resetting and loading data. The implementation of the reset triggered a data load, causing the issue. This trigger was only required when calling the reset function from outside the component. By decoupling the internal reset flow from the external flow fixed the issue.