You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just wanted to see if it is possible currently to use actions and forms from react-router to perform client side mutations. I didn't see anywhere in the documentation that says it is supported, only a page on react-router showing the standard route object.
I tried using a file called page.action.ts and i just tried exporting an action from the page.tsx file but neither worked when submitting from the Form component.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Just wanted to see if it is possible currently to use actions and forms from react-router to perform client side mutations. I didn't see anywhere in the documentation that says it is supported, only a page on react-router showing the standard route object.
I tried using a file called
page.action.ts
and i just tried exporting an action from thepage.tsx
file but neither worked when submitting from theForm
component.Thanks for your time.
Beta Was this translation helpful? Give feedback.
All reactions