using action/useSubmission, discern which button submitted the action?
i have a form with a create and a create & new, (the latter just creates the entity without clearing form/redirect/etc.)
the issue is, i don't want to render a loading indicator on both buttons every submission, only the button that created the submission. is there a way to discern which caused the submission? i was thinking an extra param to the function, but it feels a little hacky as the param isn't actually used.
open to any thoughts! thanks
the issue is, i don't want to render a loading indicator on both buttons every submission, only the button that created the submission. is there a way to discern which caused the submission? i was thinking an extra param to the function, but it feels a little hacky as the param isn't actually used.
open to any thoughts! thanks
