-
at https://reactrouter.com/start/framework/actions#client-actions It was just the opposite after my test. in Remix v2 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
That's correct, if you have a clientAction and submit a form, the clientAction will run instead of your action The clientAction receives a serverAction function so you can call it to trigger a request to the action If you never call this serverAction function it will render run then, and only the clientAction will run |
Beta Was this translation helpful? Give feedback.
That's correct, if you have a clientAction and submit a form, the clientAction will run instead of your action
The clientAction receives a serverAction function so you can call it to trigger a request to the action
If you never call this serverAction function it will render run then, and only the clientAction will run