How to use a separate action #76
Unanswered
jarimustonen
asked this question in
Q&A
Replies: 3 comments
-
Did you ever figure out a way to do this? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Not really. I switched to another library but the solutions was to use Fetcher. The basic idea is that |
Beta Was this translation helpful? Give feedback.
0 replies
-
You can add custom action in the useRemixForm
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to build a more complex form where the action is defined in a separate file. The idea is to have a form component that can be embedded on multiple different pages. The corresponding action can return either error messages or, in the case of success, a redirection.
My problem is that when the action is moved to a separate file, the return values do not came back to the form.
Here's an example code.
File
api.example.tsx
:File
ExampleForm.tsx
:Beta Was this translation helpful? Give feedback.
All reactions