The api i am using accepts certain parameters that i get from formdata and i use formaction. This part works very well, but when i try to implement pagination into the mix it starts to get janky. The same backend also accepts two more parameters, pageindex and pageSize which filters data on the backend.
I cannot ADD pagination to the formData inside my server action. Is there a way to handle this in nextjs?