I am currently writing my little blog system using Vite with Baserow and everything seems to be working but one thing. When I try to change the number of items displayed per page or change to other items. The UI doesn’t immediately update until I make the changes a second time. Even then, the updated UI content displays data from the previous state change. Is there something I am missing?
Below is the link to the devbox I am using for the coding:
https://codesandbox.io/p/devbox/music-collection-c9l5cj?file=%2Fsrc%2FApp.tsx