Everything I know about multiple actions on the same Remix route
One of my favorite features of Remix are loaders and actions. Such a simple API for handling server side requests. The best part about them is that they are just functions. This means that I can do whatever I want inside of them that I would do with any function, and one of the most common cases is handling multiple actions in a single route.
Outline:
How to identify which action is being submitted in your action
How to handling more than one shape for your form data
How to handle different action return types from
useActionData
....more?