How to handle loading states for mutliple submit buttons in Next JS form using useFormStatus hook
I have a simple html form in Next JS 14.2.2 (app router) application. The form has two submit buttons, lets says Button1 and Button2. I am using useFormStatus hook from react-dom to handle the loading indicator in each of the submit buttons.