Sveriges mest populära poddar
The Call Kent Podcast
The Call Kent Podcast

How to identify which button submits a form

4 min18 juli 2022

Om avsnittet

Which is the best way to know inside of an action function in Remix with which button a form was submitted

In this example the name is "action", but again I prefer to call this "intent": https://github.com/remix-run/remix/blob/d0d500849fbd87eace23bb3d479b7c556e314109/examples/multiple-forms/app/routes/invitations.tsx#L70-L75

How to identify which button submits a form

The Call Kent Podcast med Kent C. Dodds finns tillgänglig på flera plattformar. Informationen på denna sida kommer från offentliga podd-flöden.