How to make sure a server action that runs onchange/onupdated starts from the beginning

Hi have a server action with calculations and table value updates and inserts that runs onchange of a range slider input field.

I have put a debounce of 600ms on the trigger, but it seems like when the server action is running and the user makes a change midway, the server action “reruns” but values updated tells me it does not start from the beginning. Maybe I am wrong.

Is the only way to prevent this by setting the input field to disabled while action runs? Or is there a way to ensure the action restarts completely?

Community Page
Last updated: