When fetching data asynchronously, requests can return out of order. If the user clicks 'Next' then 'Previous' quickly, the 'Next' request might finish after 'Previous', showing the wrong data.
useEffectignore set to falseignore to true!ignoreSubmit your code to see test results